summaryrefslogtreecommitdiff
path: root/coreutils/touch.c
diff options
context:
space:
mode:
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++;