]> gitweb.michael.orlitzky.com - apply-default-acl.git/commitdiff
Improve the error message when assign_default_acl() is fed a NULL path.
authorMichael Orlitzky <michael@orlitzky.com>
Mon, 26 Feb 2018 01:19:17 +0000 (20:19 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Mon, 26 Feb 2018 19:10:28 +0000 (14:10 -0500)
src/apply-default-acl.c

index d2f8f536b530fa5b63d8fe605c75ab1ac1f737af..1d590303462fc601685cfdb2aeb22f6135c6947a 100644 (file)
@@ -464,7 +464,8 @@ int any_can_execute(int fd) {
 int assign_default_acl(const char* path, acl_t acl) {
 
   if (path == NULL) {
-    errno = ENOENT;
+    errno = EINVAL;
+    perror("assign_default_acl (args)");
     return ACL_ERROR;
   }