diff options
author | Volker Lendecke <vl@samba.org> | 2023-04-14 16:32:42 +0200 |
---|---|---|
committer | Jule Anger <janger@samba.org> | 2023-04-18 18:09:13 +0000 |
commit | e1508b922032b08602544a363b9cb3ab690591d8 (patch) | |
tree | 5f46998ee245f70bace528f9ff65339b4f34c0ab | |
parent | 64161923b6d35a3e79a00fceaf115e2afdd7d643 (diff) | |
download | samba-e1508b922032b08602544a363b9cb3ab690591d8.tar.gz |
streams_depot: Create files when requested
If you set "create mask = 0600" no streams will be created....
Tested manually. Not creating an automated test for this, there are so
many places where this can go wrong that testing this individual
glitch does not gain us much confidence.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15357
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 081e808ab4ac6e187b9791da322eb7173e1e133c)
-rw-r--r-- | source3/modules/vfs_streams_depot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/modules/vfs_streams_depot.c b/source3/modules/vfs_streams_depot.c index f92e9c8c5fa..83019fa07da 100644 --- a/source3/modules/vfs_streams_depot.c +++ b/source3/modules/vfs_streams_depot.c @@ -690,7 +690,7 @@ static int streams_depot_openat(struct vfs_handle_struct *handle, SMB_ASSERT(dirfsp == NULL); SMB_ASSERT(VALID_STAT(fsp->base_fsp->fsp_name->st)); - create_it = (how->mode & O_CREAT); + create_it = (how->flags & O_CREAT); /* Determine the stream name, and then open it. */ status = stream_smb_fname( |