]> gitweb.michael.orlitzky.com - apply-default-acl.git/commitdiff
Add missing jump-to-cleanup in one error scenario.
authorMichael Orlitzky <michael@orlitzky.com>
Fri, 23 Feb 2018 21:00:03 +0000 (16:00 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Fri, 23 Feb 2018 21:00:03 +0000 (16:00 -0500)
src/apply-default-acl.c

index 54cf66a6ca523ce0f5d78252d9a0643dcf850ec0..7058e6263d99f2493772f04733bb9b8eebe11d81 100644 (file)
@@ -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. */