From: Michael Orlitzky Date: Mon, 26 Feb 2018 01:19:17 +0000 (-0500) Subject: Improve the error message when assign_default_acl() is fed a NULL path. X-Git-Tag: v0.1.0~23 X-Git-Url: http://gitweb.michael.orlitzky.com/?p=apply-default-acl.git;a=commitdiff_plain;h=2bc2d104386912d39aa78c6fceb5694014257a7e Improve the error message when assign_default_acl() is fed a NULL path. --- diff --git a/src/apply-default-acl.c b/src/apply-default-acl.c index d2f8f53..1d59030 100644 --- a/src/apply-default-acl.c +++ b/src/apply-default-acl.c @@ -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; }