]> arthur.barton.de Git - netatalk.git/commitdiff
Fix ACL detection, thanks to Rod Yager for spotting this
authorFrank Lahm <franklahm@googlemail.com>
Mon, 1 Aug 2011 12:52:44 +0000 (14:52 +0200)
committerFrank Lahm <franklahm@googlemail.com>
Mon, 1 Aug 2011 12:52:44 +0000 (14:52 +0200)
etc/afpd/volume.c

index f2269bd407a441b85d78312336bb48fb6b966e35..78be58e04da5a4c6f5d32980a460e9f58c2f1c17 100644 (file)
@@ -747,8 +747,10 @@ static int creatvol(AFPObj *obj, struct passwd *pwd,
     volume->v_vid = ++lastvid;
     volume->v_vid = htons(volume->v_vid);
 #ifdef HAVE_ACLS
-    if (!check_vol_acl_support(volume))
-        volume->v_flags &= ~AFPVOL_ACLS;
+    if (!check_vol_acl_support(volume)) {
+        LOG(log_debug, logtype_afpd, "creatvol(\"%s\"): disabling ACL support", volume->v_path);
+        options[VOLOPT_FLAGS].i_value &= ~AFPVOL_ACLS;
+    }
 #endif
 
     /* handle options */