]> gitweb.michael.orlitzky.com - apply-default-acl.git/blobdiff - src/aclq.c
Add one more test for the default mask execute bit.
[apply-default-acl.git] / src / aclq.c
index 557a70e6e21acf9ebe051275de8d448d930dd2bd..65e1ca326d82cc83b741808f230e34a135b70208 100644 (file)
@@ -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)");