]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: A stream open does not need O_NOFOLLOW
authorVolker Lendecke <vl@samba.org>
Tue, 14 Jun 2022 15:03:17 +0000 (17:03 +0200)
committerRalph Boehme <slow@samba.org>
Mon, 25 Jul 2022 12:04:33 +0000 (12:04 +0000)
Would not have hurt either, but this makes the next patch easier to
verify properly

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

index 31f0f144d1b16a93c6c037d8c5c946a00fe76738..80420ea2e10155407a45928ba24d508d856a06e9 100644 (file)
@@ -653,7 +653,7 @@ NTSTATUS open_stream_pathref_fsp(
                NULL,   /* stream open is relative to fsp->base_fsp */
                smb_fname,
                fsp,
-               O_RDONLY|O_NONBLOCK|O_NOFOLLOW,
+               O_RDONLY|O_NONBLOCK,
                0);
        fsp_set_fd(fsp, fd);