X-Git-Url: https://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=src%2Faclq.c;h=65e1ca326d82cc83b741808f230e34a135b70208;hb=2c0cec434f75b206f33afd4972db4b2bf2f92fb6;hp=557a70e6e21acf9ebe051275de8d448d930dd2bd;hpb=5932197191e4cbeacbab1ff5900a7851fdb85872;p=apply-default-acl.git diff --git a/src/aclq.c b/src/aclq.c index 557a70e..65e1ca3 100644 --- a/src/aclq.c +++ b/src/aclq.c @@ -223,7 +223,7 @@ int any_can_execute(const char* path) { /* Our return value. */ int result = 0; - + if (acl_is_minimal(&acl)) { mode_t mode = get_mode(path); if (mode & (S_IXUSR | S_IXOTH | S_IXGRP)) { @@ -235,7 +235,7 @@ int any_can_execute(const char* path) { goto cleanup; } } - + acl_entry_t entry; int ge_result = acl_get_entry(acl, ACL_FIRST_ENTRY, &entry); @@ -337,7 +337,7 @@ int wipe_acls(const char* path) { /* Our return value. */ int result = 1; - + acl_entry_t entry; int ge_result = acl_get_entry(acl, ACL_FIRST_ENTRY, &entry); @@ -355,7 +355,7 @@ int wipe_acls(const char* path) { /* Catches the first acl_get_entry as well as the ones at the end of the loop. */ if (ge_result == -1) { - perror("reapply_default_acl_ng (acl_get_entry)"); + perror("wipe_acls (acl_get_entry)"); result = -1; goto cleanup; } @@ -413,7 +413,7 @@ int reapply_default_acl(const char* path) { /* Our return value. */ int result = 1; - + int wipe_result = wipe_acls(path); if (wipe_result == -1) { perror("reapply_default_acl_ng (wipe_acls)");