diff options
| author | Eric Andersen <andersen@codepoet.org> | 2000-06-02 03:21:42 +0000 |
|---|---|---|
| committer | Eric Andersen <andersen@codepoet.org> | 2000-06-02 03:21:42 +0000 |
| commit | 86ab8a32bd63b2f2a73bdcead8e2bb037589e175 (patch) | |
| tree | 10aa90962757d07724c78e4fc9baaa27ca7b4858 /coreutils | |
| parent | 4062268bc7ac748e2ea2e569aa862b2b3f8a2db2 (diff) | |
| download | busybox-w32-86ab8a32bd63b2f2a73bdcead8e2bb037589e175.tar.gz busybox-w32-86ab8a32bd63b2f2a73bdcead8e2bb037589e175.tar.bz2 busybox-w32-86ab8a32bd63b2f2a73bdcead8e2bb037589e175.zip | |
A number of additional fixed from Pavel Roskin, note some more bugs in the
TODO list. Add Glenn to the Authors list for writing a mini ar for BusyBox,
which is now included.
-Erik
Diffstat (limited to 'coreutils')
| -rw-r--r-- | coreutils/pwd.c | 2 | ||||
| -rw-r--r-- | coreutils/tail.c | 2 | ||||
| -rw-r--r-- | coreutils/test.c | 12 |
3 files changed, 8 insertions, 8 deletions
diff --git a/coreutils/pwd.c b/coreutils/pwd.c index 19494a96c..146ef332b 100644 --- a/coreutils/pwd.c +++ b/coreutils/pwd.c | |||
| @@ -31,7 +31,7 @@ extern int pwd_main(int argc, char **argv) | |||
| 31 | char buf[BUFSIZ + 1]; | 31 | char buf[BUFSIZ + 1]; |
| 32 | 32 | ||
| 33 | if (getcwd(buf, sizeof(buf)) == NULL) | 33 | if (getcwd(buf, sizeof(buf)) == NULL) |
| 34 | fatalError("pwd: %s", strerror(errno)); | 34 | fatalError("pwd: %s\n", strerror(errno)); |
| 35 | 35 | ||
| 36 | printf("%s\n", buf); | 36 | printf("%s\n", buf); |
| 37 | exit(TRUE); | 37 | exit(TRUE); |
diff --git a/coreutils/tail.c b/coreutils/tail.c index 3b3e2f56c..2027d921d 100644 --- a/coreutils/tail.c +++ b/coreutils/tail.c | |||
| @@ -336,7 +336,7 @@ static int tail_file(const char *filename, off_t n_units) | |||
| 336 | /* Not standard input. */ | 336 | /* Not standard input. */ |
| 337 | fd = open(filename, O_RDONLY); | 337 | fd = open(filename, O_RDONLY); |
| 338 | if (fd == -1) | 338 | if (fd == -1) |
| 339 | fatalError("open error"); | 339 | perror(filename); |
| 340 | 340 | ||
| 341 | errors = tail_lines(filename, fd, (long) n_units); | 341 | errors = tail_lines(filename, fd, (long) n_units); |
| 342 | close(fd); | 342 | close(fd); |
diff --git a/coreutils/test.c b/coreutils/test.c index 9b541e33e..0a16e9328 100644 --- a/coreutils/test.c +++ b/coreutils/test.c | |||
| @@ -185,7 +185,7 @@ test_main(int argc, char** argv) | |||
| 185 | 185 | ||
| 186 | if (strcmp(argv[0], "[") == 0) { | 186 | if (strcmp(argv[0], "[") == 0) { |
| 187 | if (strcmp(argv[--argc], "]")) | 187 | if (strcmp(argv[--argc], "]")) |
| 188 | fatalError("missing ]"); | 188 | fatalError("missing ]\n"); |
| 189 | argv[argc] = NULL; | 189 | argv[argc] = NULL; |
| 190 | } | 190 | } |
| 191 | if (strcmp(argv[1], dash_dash_help) == 0) { | 191 | if (strcmp(argv[1], dash_dash_help) == 0) { |
| @@ -244,9 +244,9 @@ syntax(op, msg) | |||
| 244 | char *msg; | 244 | char *msg; |
| 245 | { | 245 | { |
| 246 | if (op && *op) | 246 | if (op && *op) |
| 247 | fatalError("%s: %s", op, msg); | 247 | fatalError("%s: %s\n", op, msg); |
| 248 | else | 248 | else |
| 249 | fatalError("%s", msg); | 249 | fatalError("%s\n", msg); |
| 250 | } | 250 | } |
| 251 | 251 | ||
| 252 | static int | 252 | static int |
| @@ -481,13 +481,13 @@ getn(s) | |||
| 481 | r = strtol(s, &p, 10); | 481 | r = strtol(s, &p, 10); |
| 482 | 482 | ||
| 483 | if (errno != 0) | 483 | if (errno != 0) |
| 484 | fatalError("%s: out of range", s); | 484 | fatalError("%s: out of range\n", s); |
| 485 | 485 | ||
| 486 | while (isspace(*p)) | 486 | while (isspace(*p)) |
| 487 | p++; | 487 | p++; |
| 488 | 488 | ||
| 489 | if (*p) | 489 | if (*p) |
| 490 | fatalError("%s: bad number", s); | 490 | fatalError("%s: bad number\n", s); |
| 491 | 491 | ||
| 492 | return (int) r; | 492 | return (int) r; |
| 493 | } | 493 | } |
| @@ -567,7 +567,7 @@ initialize_group_array () | |||
| 567 | { | 567 | { |
| 568 | ngroups = getgroups(0, NULL); | 568 | ngroups = getgroups(0, NULL); |
| 569 | if ((group_array = realloc(group_array, ngroups * sizeof(gid_t))) == NULL) | 569 | if ((group_array = realloc(group_array, ngroups * sizeof(gid_t))) == NULL) |
| 570 | fatalError("Out of space"); | 570 | fatalError("Out of space\n"); |
| 571 | 571 | ||
| 572 | getgroups(ngroups, group_array); | 572 | getgroups(ngroups, group_array); |
| 573 | } | 573 | } |
