From b6e40dbf9bd5a35bfe98fbe7e570d6742722dc57 Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Thu, 2 Jul 2020 07:57:57 +0200 Subject: [PATCH] smbd: use (global) POSIX pathname state in non_widelink_open() Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- source3/smbd/open.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 5d56804e7e9..21d611e1818 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -719,7 +719,7 @@ static int non_widelink_open(files_struct *fsp, * BUG: https://bugzilla.samba.org/show_bug.cgi?id=12860 */ if (saved_errno == ELOOP || saved_errno == ENOTDIR) { - if (fsp->posix_flags & FSP_POSIX_FLAGS_OPEN) { + if (fsp->fsp_name->flags & SMB_FILENAME_POSIX_PATH) { /* Never follow symlinks on posix open. */ goto out; }