]> gitweb.michael.orlitzky.com - apply-default-acl.git/blobdiff - src/apply-default-acl.c
Add missing jump-to-cleanup in one error scenario.
[apply-default-acl.git] / 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. */