From 2bc2d104386912d39aa78c6fceb5694014257a7e Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Sun, 25 Feb 2018 20:19:17 -0500 Subject: [PATCH] Improve the error message when assign_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 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; } -- 2.44.2