X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=libatalk%2Fvfs%2Funix.c;fp=libatalk%2Fvfs%2Funix.c;h=c57249b3f28531f6d57fd5c1d5c95f97d3169aaf;hb=d866596dad28a004b49257502d147651a66fd756;hp=659cd41162d95a004eaaefbada06432b03147433;hpb=6aa3f324ef50bd6a6241739da872541bdb2c5705;p=netatalk.git diff --git a/libatalk/vfs/unix.c b/libatalk/vfs/unix.c index 659cd411..c57249b3 100644 --- a/libatalk/vfs/unix.c +++ b/libatalk/vfs/unix.c @@ -39,9 +39,7 @@ int stickydirmode(const char *name, const mode_t mode, const int dropbox, const * Ignore EPERM errors: We may be dealing with a directory that is * group writable, in which case chmod will fail. */ - if ( (chmod_acl( name, (DIRBITS | mode) & ~v_umask ) < 0) && errno != EPERM && - !(errno == ENOENT && (dropbox & AFPVOL_NOADOUBLE)) ) - { + if ((chmod_acl( name, (DIRBITS | mode) & ~v_umask ) < 0) && errno != EPERM) { LOG(log_error, logtype_afpd, "stickydirmode: chmod \"%s\": %s", fullpathname(name), strerror(errno) ); retval = -1; }