Only add the SD if it's not a new stream file.
authorJeremy Allison <jra@samba.org>
Tue, 22 Nov 2011 18:37:56 +0000 (10:37 -0800)
committerJeremy Allison <jra@samba.org>
Tue, 22 Nov 2011 18:37:56 +0000 (10:37 -0800)
source3/smbd/open.c

index 8be5e852702db13e29bb93e604fb8dff06293af6..936c27e64d99b2096e62306f995dd269caf75865 100644 (file)
@@ -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;