]> arthur.barton.de Git - netatalk.git/blobdiff - etc/afpd/acls.c
Fix volume ACL support detection
[netatalk.git] / etc / afpd / acls.c
index 7bbec02c689d8df89edab346aa6cf9690397a751..18490fcfaaa7417fc5ce13bb89e7ce261bca5681 100644 (file)
@@ -1509,15 +1509,17 @@ EC_CLEANUP:
  */
 int check_vol_acl_support(const struct vol *vol)
 {
-    int ret = 1;
+    int ret = 0;
 
 #ifdef HAVE_SOLARIS_ACLS
     ace_t *aces = NULL;
+    ret = 1;
     if (get_nfsv4_acl(vol->v_path, &aces) == -1)
         ret = 0;
 #endif
 #ifdef HAVE_POSIX_ACLS
     acl_t acl = NULL;
+    ret = 1;
     if ((acl = acl_get_file(vol->v_path, ACL_TYPE_ACCESS)) == NULL)
         ret = 0;
 #endif