summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2011-11-22 10:37:56 -0800
committerJeremy Allison <jra@samba.org>2011-11-22 10:37:56 -0800
commit7b275c551ba3caee9e020740a672f8dd447769ff (patch)
treea5f4751ca2299d8c2c587e5af7143c8b2244a3a8 /source3
parent12514bf008044f836e62b46b8fea1ef3117d7632 (diff)
downloadsamba-7b275c551ba3caee9e020740a672f8dd447769ff.tar.gz
samba-7b275c551ba3caee9e020740a672f8dd447769ff.tar.bz2
samba-7b275c551ba3caee9e020740a672f8dd447769ff.zip
Only add the SD if it's not a new stream file.
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/open.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index 8be5e85270..936c27e64d 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -3469,7 +3469,7 @@ static NTSTATUS create_file_unixpath(connection_struct *conn,
*/
if ((sd != NULL) && (info == FILE_WAS_CREATED)
- && lp_nt_acl_support(SNUM(conn))) {
+ && lp_nt_acl_support(SNUM(conn)) && fsp->base_fsp == NULL) {
uint32_t sec_info_sent;
uint32_t saved_access_mask = fsp->access_mask;