diff options
author | Jeremy Allison <jra@samba.org> | 2001-01-24 21:54:44 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-01-24 21:54:44 +0000 |
commit | e0431672cc54ed09d6c5cf083054db12ccd9dcf6 (patch) | |
tree | 2ecc6a0bbab024d9eb48494abfefd8c40f33cc2b /source/smbd/open.c | |
parent | 3712e35c5460d341ba750fe5e7bce8ef63c9f8ef (diff) | |
download | samba-e0431672cc54ed09d6c5cf083054db12ccd9dcf6.tar.gz samba-e0431672cc54ed09d6c5cf083054db12ccd9dcf6.tar.xz samba-e0431672cc54ed09d6c5cf083054db12ccd9dcf6.zip |
Sync up with POSIX ACL code from 2.2.
Jeremy.
Diffstat (limited to 'source/smbd/open.c')
-rw-r--r-- | source/smbd/open.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/smbd/open.c b/source/smbd/open.c index 77962562e31..3665e7d20f7 100644 --- a/source/smbd/open.c +++ b/source/smbd/open.c @@ -192,6 +192,13 @@ static BOOL open_file(files_struct *fsp,connection_struct *conn, BOOLSTR(fsp->can_read), BOOLSTR(fsp->can_write), conn->num_files_open + 1)); + /* + * Take care of inherited ACLs on created files. JRA. + */ + + if ((flags & O_CREAT) && (conn->vfs_ops.fchmod_acl != NULL)) + conn->vfs_ops.fchmod_acl(fsp, fsp->fd, mode); + return True; } |