aboutsummaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2000-06-02 03:21:42 +0000
committerEric Andersen <andersen@codepoet.org>2000-06-02 03:21:42 +0000
commit86ab8a32bd63b2f2a73bdcead8e2bb037589e175 (patch)
tree10aa90962757d07724c78e4fc9baaa27ca7b4858 /coreutils
parent4062268bc7ac748e2ea2e569aa862b2b3f8a2db2 (diff)
downloadbusybox-86ab8a32bd63b2f2a73bdcead8e2bb037589e175.tar.gz
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.c2
-rw-r--r--coreutils/tail.c2
-rw-r--r--coreutils/test.c12
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)
char buf[BUFSIZ + 1];
if (getcwd(buf, sizeof(buf)) == NULL)
- fatalError("pwd: %s", strerror(errno));
+ fatalError("pwd: %s\n", strerror(errno));
printf("%s\n", buf);
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)
/* Not standard input. */
fd = open(filename, O_RDONLY);
if (fd == -1)
- fatalError("open error");
+ perror(filename);
errors = tail_lines(filename, fd, (long) n_units);
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)
if (strcmp(argv[0], "[") == 0) {
if (strcmp(argv[--argc], "]"))
- fatalError("missing ]");
+ fatalError("missing ]\n");
argv[argc] = NULL;
}
if (strcmp(argv[1], dash_dash_help) == 0) {
@@ -244,9 +244,9 @@ syntax(op, msg)
char *msg;
{
if (op && *op)
- fatalError("%s: %s", op, msg);
+ fatalError("%s: %s\n", op, msg);
else
- fatalError("%s", msg);
+ fatalError("%s\n", msg);
}
static int
@@ -481,13 +481,13 @@ getn(s)
r = strtol(s, &p, 10);
if (errno != 0)
- fatalError("%s: out of range", s);
+ fatalError("%s: out of range\n", s);
while (isspace(*p))
p++;
if (*p)
- fatalError("%s: bad number", s);
+ fatalError("%s: bad number\n", s);
return (int) r;
}
@@ -567,7 +567,7 @@ initialize_group_array ()
{
ngroups = getgroups(0, NULL);
if ((group_array = realloc(group_array, ngroups * sizeof(gid_t))) == NULL)
- fatalError("Out of space");
+ fatalError("Out of space\n");
getgroups(ngroups, group_array);
}