aboutsummaryrefslogtreecommitdiff
path: root/touch.c
diff options
context:
space:
mode:
Diffstat (limited to 'touch.c')
-rw-r--r--touch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/touch.c b/touch.c
index 59800b2a0..1b03075e8 100644
--- a/touch.c
+++ b/touch.c
@@ -58,12 +58,12 @@ extern int touch_main(int argc, char **argv)
58 if (create == FALSE && errno == ENOENT) 58 if (create == FALSE && errno == ENOENT)
59 return EXIT_SUCCESS; 59 return EXIT_SUCCESS;
60 else { 60 else {
61 error_msg_and_die("%s", strerror(errno)); 61 perror_msg_and_die("%s", *argv);
62 } 62 }
63 } 63 }
64 close(fd); 64 close(fd);
65 if (utime(*argv, NULL)) { 65 if (utime(*argv, NULL)) {
66 error_msg_and_die("%s", strerror(errno)); 66 perror_msg_and_die("%s", *argv);
67 } 67 }
68 argc--; 68 argc--;
69 argv++; 69 argv++;