From c95b2420e80bf52789c2651114456a91dac97880 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Sun, 25 Feb 2018 19:59:52 -0500 Subject: [PATCH] Improve the error message when apply_default_acl() is fed a NULL path. --- src/apply-default-acl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.43.2