Make cin be static
[oweals/busybox.git] / touch.c
diff --git a/touch.c b/touch.c
index 59800b2a099896ea65d41c4007a8f1c55863b64f..1b03075e813f35837a61a9efc8c9f0f9253eecd1 100644 (file)
--- 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++;