]> gitweb.michael.orlitzky.com - apply-default-acl.git/blobdiff - src/apply-default-acl.c
Improve the error message for most types of inaccessible paths.
[apply-default-acl.git] / src / apply-default-acl.c
index 3350a19ab60fbf1b26f9c9b9a45ddfdf4750a83e..a520aa9b6d4ebdc43b5055772292c1efe4b2b822 100644 (file)
@@ -257,7 +257,7 @@ int main(int argc, char* argv[]) {
      * typos, too.
      */
     if (!path_accessible(target)) {
-      fprintf(stderr, "%s: %s: No such file or directory\n", argv[0], target);
+      perror(target);
       result = EXIT_FAILURE;
       continue;
     }