]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Don't change incoming flags in open_file()
authorVolker Lendecke <vl@samba.org>
Tue, 5 Sep 2023 12:44:37 +0000 (14:44 +0200)
committerRalph Boehme <slow@samba.org>
Thu, 5 Oct 2023 12:58:33 +0000 (12:58 +0000)
This will be part of a const struct vfs_open_how soon. Further down in
this function we don't look at O_CREAT or O_EXCL of "flags" anymore
anyway.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/open.c

index be42f9430f149230234353f058e045388e78214d..efcd0ceec8ef999945d313f720c03caf4e2a09d2 100644 (file)
@@ -1360,7 +1360,6 @@ static NTSTATUS open_file(struct smb_request *req,
                           O_CREAT doesn't create the file if we have write
                           access into the directory.
                        */
-                       flags &= ~(O_CREAT|O_EXCL);
                        local_flags &= ~(O_CREAT|O_EXCL);
                }
        }