From c8b0a4c1f78da7a966a3c8f7806631b0da1eea55 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Fri, 23 Feb 2018 16:00:03 -0500 Subject: [PATCH] Add missing jump-to-cleanup in one error scenario. --- 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 54cf66a..7058e62 100644 --- a/src/apply-default-acl.c +++ b/src/apply-default-acl.c @@ -761,7 +761,8 @@ int apply_default_acl(const char* path, bool no_exec_mask) { acl_t acl = acl_get_file(path, ACL_TYPE_ACCESS); if (acl == (acl_t)NULL) { perror("apply_default_acl (acl_get_file)"); - return ACL_ERROR; + result = ACL_ERROR; + goto cleanup; } /* If it's a directory, inherit the parent's default. */ -- 2.44.2