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)
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++;