summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2020-07-02 07:57:57 +0200
committerJeremy Allison <jra@samba.org>2020-07-18 05:58:41 +0000
commitb6e40dbf9bd5a35bfe98fbe7e570d6742722dc57 (patch)
treee00c95b82f06c867648a8483c2fad7f4aa40a644 /source3/smbd
parentafdeba88194bc1b2ae66dd5e598211801698c189 (diff)
downloadsamba-b6e40dbf9bd5a35bfe98fbe7e570d6742722dc57.tar.gz
smbd: use (global) POSIX pathname state in non_widelink_open()
Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/open.c2
1 files changed, 1 insertions, 1 deletions
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;
}