mirror of
https://github.com/samba-team/samba.git
synced 2025-03-08 04:58:40 +03:00
Don't try and delete a default ACL from a file.
This commit is contained in:
parent
16d2fdf575
commit
e4ad0a1d1f
@ -4209,10 +4209,14 @@ bool set_unix_posix_default_acl(connection_struct *conn, const char *fname, SMB_
|
||||
{
|
||||
SMB_ACL_T def_acl = NULL;
|
||||
|
||||
if (num_def_acls && !S_ISDIR(psbuf->st_mode)) {
|
||||
DEBUG(5,("set_unix_posix_default_acl: Can't set default ACL on non-directory file %s\n", fname ));
|
||||
errno = EISDIR;
|
||||
return False;
|
||||
if (!S_ISDIR(psbuf->st_mode)) {
|
||||
if (num_def_acls) {
|
||||
DEBUG(5,("set_unix_posix_default_acl: Can't set default ACL on non-directory file %s\n", fname ));
|
||||
errno = EISDIR;
|
||||
return False;
|
||||
} else {
|
||||
return True;
|
||||
}
|
||||
}
|
||||
|
||||
if (!num_def_acls) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user