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

index 1eb49c44fd88b9d403c2bc0b4c8cce28e1e6ce87..b43a1c65bb6226eaa22eacd08122c8ba20920eec 100644 (file)
@@ -629,7 +629,8 @@ int wipe_acls(int fd) {
 int apply_default_acl(const char* path, bool no_exec_mask) {
 
   if (path == NULL) {
-    errno = ENOENT;
+    errno = EINVAL;
+    perror("apply_default_acl (args)");
     return ACL_ERROR;
   }