* NEW: afpd: disable continous service feature by default, new option
-keepsessions to enable it
+* UPD: afpd: Enhance ACL support detection for volumes: enable them per volume if
+ 1) ACL support compiled in, 2) the volume supports ACLs, 3) the new volume
+ option "noacls" is not set for the volume.
+ The previous behaviour was to enable ACL support for a volume if
+ 1) it was compiled in and 2) the volume supported ACLs. There was no way
+ to disable ACLs for a volume.
* FIX: afpd: increase BerkeleyDB locks and lockobjs
* FIX: afpd: create special folder as root
* FIX: afpd: fix compilation error if --enable-ddp is used
options[VOLOPT_FLAGS].i_value |= AFPVOL_SEARCHDB;
else if (strcasecmp(p, "nonetids") == 0)
options[VOLOPT_FLAGS].i_value |= AFPVOL_NONETIDS;
+ else if (strcasecmp(p, "noacls") == 0)
+ options[VOLOPT_FLAGS].i_value &= ~AFPVOL_ACLS;
p = strtok(NULL, ",");
}
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))
+ volume->v_flags &= ~AFPVOL_ACLS;
#endif
/* handle options */
/* Enable some default options for all volumes */
save_options[VOLOPT_FLAGS].i_value |= AFPVOL_CACHE;
+#ifdef HAVE_ACLS
+ save_options[VOLOPT_FLAGS].i_value |= AFPVOL_ACLS;
+#endif
save_options[VOLOPT_EA_VFS].i_value = AFPVOL_EA_AUTO;
LOG(log_maxdebug, logtype_afpd, "readvolfile: seeding default umask: %04o",
obj->options.umask);