summaryrefslogtreecommitdiff
path: root/coreutils/touch.c
diff options
context:
space:
mode:
authorMatt Kraai2000-12-18 03:08:29 +0000
committerMatt Kraai2000-12-18 03:08:29 +0000
commit0dab82997777bffb95d01d68e1628ee79207a03d (patch)
treecd56722ced55fd4b08049a0717cbbb9df5e9113f /coreutils/touch.c
parentbfa7967c4a18c9a7addbe853cf9f736ac34b4e5b (diff)
downloadbusybox-0dab82997777bffb95d01d68e1628ee79207a03d.zip
busybox-0dab82997777bffb95d01d68e1628ee79207a03d.tar.gz
Add missing newlines to error messages.
Diffstat (limited to 'coreutils/touch.c')
-rw-r--r--coreutils/touch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/touch.c b/coreutils/touch.c
index 59800b2..1b03075 100644
--- a/coreutils/touch.c
+++ b/coreutils/touch.c
@@ -58,12 +58,12 @@ extern int touch_main(int argc, char **argv)
if (create == FALSE && errno == ENOENT)
return EXIT_SUCCESS;
else {
- error_msg_and_die("%s", strerror(errno));
+ perror_msg_and_die("%s", *argv);
}
}
close(fd);
if (utime(*argv, NULL)) {
- error_msg_and_die("%s", strerror(errno));
+ perror_msg_and_die("%s", *argv);
}
argc--;
argv++;