diff options
Diffstat (limited to 'touch.c')
-rw-r--r-- | touch.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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++; |