mirror of
https://github.com/samba-team/samba.git
synced 2025-03-09 08:58:35 +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;
|
SMB_ACL_T def_acl = NULL;
|
||||||
|
|
||||||
if (num_def_acls && !S_ISDIR(psbuf->st_mode)) {
|
if (!S_ISDIR(psbuf->st_mode)) {
|
||||||
DEBUG(5,("set_unix_posix_default_acl: Can't set default ACL on non-directory file %s\n", fname ));
|
if (num_def_acls) {
|
||||||
errno = EISDIR;
|
DEBUG(5,("set_unix_posix_default_acl: Can't set default ACL on non-directory file %s\n", fname ));
|
||||||
return False;
|
errno = EISDIR;
|
||||||
|
return False;
|
||||||
|
} else {
|
||||||
|
return True;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!num_def_acls) {
|
if (!num_def_acls) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user