X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=netatalk.git;a=blobdiff_plain;f=etc%2Fafpd%2Funix.c;h=e928fda93f7f70624a367c544d36d4f7c3189e95;hp=a42a6ab9093fde4f923e43510474d52ad58334b4;hb=d517632b2d4ef26ea7bbd12794d1cf0709f33542;hpb=b2c5af75b4e70480f776e01b51687c226c7f6e02 diff --git a/etc/afpd/unix.c b/etc/afpd/unix.c index a42a6ab9..e928fda9 100644 --- a/etc/afpd/unix.c +++ b/etc/afpd/unix.c @@ -229,7 +229,8 @@ int setdirunixmode(const struct vol *vol, char *name, mode_t mode) LOG(log_debug, logtype_afpd, "setdirunixmode('%s', mode:%04o) {v_dperm:%04o}", fullpathname(name), mode, vol->v_dperm); - mode |= (vol->v_dperm | DIRBITS) & ~vol->v_umask; + mode |= vol->v_dperm | DIRBITS; + mode &= ~vol->v_umask; if (dir_rx_set(mode)) { /* extending right? dir first then .AppleDouble in rf_setdirmode */