From: Volker Lendecke Date: Tue, 14 Jun 2022 15:03:17 +0000 (+0200) Subject: smbd: A stream open does not need O_NOFOLLOW X-Git-Tag: tevent-0.13.0~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=37fd029e6ffc6f697af09ceab044cafe5198abd1;p=thirdparty%2Fsamba.git smbd: A stream open does not need O_NOFOLLOW Would not have hurt either, but this makes the next patch easier to verify properly Signed-off-by: Volker Lendecke Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/files.c b/source3/smbd/files.c index 31f0f144d1b..80420ea2e10 100644 --- a/source3/smbd/files.c +++ b/source3/smbd/files.c @@ -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);