aboutsummaryrefslogtreecommitdiff
path: root/coreutils/touch.c
diff options
context:
space:
mode:
authorMatt Kraai <kraai@debian.org>2000-07-12 17:02:35 +0000
committerMatt Kraai <kraai@debian.org>2000-07-12 17:02:35 +0000
commitbe84cd4ef66f8956eb4c7ff0542fd1ba823a70e7 (patch)
tree088bc5b6e06d693ad8ca3eba078c0f3a8e302a24 /coreutils/touch.c
parente58771e73c0d8589a458ede4088f5ba70eff917b (diff)
downloadbusybox-w32-be84cd4ef66f8956eb4c7ff0542fd1ba823a70e7.tar.gz
busybox-w32-be84cd4ef66f8956eb4c7ff0542fd1ba823a70e7.tar.bz2
busybox-w32-be84cd4ef66f8956eb4c7ff0542fd1ba823a70e7.zip
Always report the applet name when doing error reporting.
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 f52bb0284..ac275423c 100644
--- a/coreutils/touch.c
+++ b/coreutils/touch.c
@@ -70,12 +70,12 @@ extern int touch_main(int argc, char **argv)
70 if (create == FALSE && errno == ENOENT) 70 if (create == FALSE && errno == ENOENT)
71 exit(TRUE); 71 exit(TRUE);
72 else { 72 else {
73 fatalError("touch: %s", strerror(errno)); 73 fatalError("%s", strerror(errno));
74 } 74 }
75 } 75 }
76 close(fd); 76 close(fd);
77 if (utime(*argv, NULL)) { 77 if (utime(*argv, NULL)) {
78 fatalError("touch: %s", strerror(errno)); 78 fatalError("%s", strerror(errno));
79 } 79 }
80 argc--; 80 argc--;
81 argv++; 81 argv++;