From: Michael Orlitzky Date: Mon, 26 Feb 2018 00:59:52 +0000 (-0500) Subject: Improve the error message when apply_default_acl() is fed a NULL path. X-Git-Tag: v0.1.0~27 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=c95b2420e80bf52789c2651114456a91dac97880;p=apply-default-acl.git Improve the error message when apply_default_acl() is fed a NULL path. --- diff --git a/src/apply-default-acl.c b/src/apply-default-acl.c index 1eb49c4..b43a1c6 100644 --- a/src/apply-default-acl.c +++ b/src/apply-default-acl.c @@ -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; }