From: Ralph Boehme Date: Mon, 26 Oct 2020 13:39:02 +0000 (+0100) Subject: smbd: check for pathref fd's in vfs_set_blocking() X-Git-Tag: samba-4.14.0rc1~384 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=eb6bbb4f0163ce7805b3691236abfb87757ed997;p=thirdparty%2Fsamba.git smbd: check for pathref fd's in vfs_set_blocking() Don't try to set pathref fd's to non-blocking, they're not used with IO. Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/vfs.c b/source3/smbd/vfs.c index c972c97b7bc..3e30805b690 100644 --- a/source3/smbd/vfs.c +++ b/source3/smbd/vfs.c @@ -794,6 +794,11 @@ int vfs_set_blocking(files_struct *fsp, bool set) #define FLAG_TO_SET FNDELAY #endif #endif + + if (fsp->fsp_flags.is_pathref) { + return 0; + } + val = SMB_VFS_FCNTL(fsp, F_GETFL, 0); if (val == -1) { return -1;