summaryrefslogtreecommitdiff
path: root/source3/smbd/vfs.c
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-12-17 18:30:44 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:16:34 -0500
commit9933b596d1dddca68a7bcc611e1f8cffc7f2a4e6 (patch)
tree4ccd0403d7ef5be8c7b19c7365af93e1f966349e /source3/smbd/vfs.c
parent771f5956937a1697b05ea29a00b9fdd36022188f (diff)
downloadsamba-9933b596d1dddca68a7bcc611e1f8cffc7f2a4e6.tar.gz
samba-9933b596d1dddca68a7bcc611e1f8cffc7f2a4e6.tar.bz2
samba-9933b596d1dddca68a7bcc611e1f8cffc7f2a4e6.zip
r20228: Bring the calling conventions of inherit_access_acl and change_owner_to_parent
a bit closer together: Move the lp_inherit_perms() check into the callers. Volker (This used to be commit 0874093e5fff480d8ec442072318525079add633)
Diffstat (limited to 'source3/smbd/vfs.c')
-rw-r--r--source3/smbd/vfs.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/smbd/vfs.c b/source3/smbd/vfs.c
index ab9ddef9ff..b6a7d477bd 100644
--- a/source3/smbd/vfs.c
+++ b/source3/smbd/vfs.c
@@ -319,7 +319,9 @@ int vfs_MkDir(connection_struct *conn, const char *name, mode_t mode)
return ret;
}
- inherit_access_acl(conn, name, mode);
+ if (lp_inherit_perms(SNUM(conn))) {
+ inherit_access_acl(conn, name, mode);
+ }
/*
* Check if high bits should have been set,