From 4587d83f075a82665a48b52087b2704d2105882e Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 22 Dec 2015 13:35:10 -0800 Subject: [PATCH] s3: smbd: VFS change. Add new field bool posix_pathnames into struct smb_request. Initialize from lp_posix_pathnames() global. Signed-off-by: Jeremy Allison Reviewed-by: Volker Lendecke --- source3/include/vfs.h | 3 +++ source3/smbd/process.c | 1 + 2 files changed, 4 insertions(+) diff --git a/source3/include/vfs.h b/source3/include/vfs.h index 71e1af981a4..66e4fc6be68 100644 --- a/source3/include/vfs.h +++ b/source3/include/vfs.h @@ -169,6 +169,7 @@ /* Version 33 - Remove notify_watch_fn */ /* Bump to version 34 - Samba 4.4 will ship with that */ /* Version 34 - Remove bool posix_open, add uint64_t posix_flags */ +/* Version 34 - Added bool posix_pathnames to struct smb_request */ #define SMB_VFS_INTERFACE_VERSION 34 @@ -464,6 +465,8 @@ struct smb_request { struct smb_request **chain; struct timeval request_time; + + bool posix_pathnames; }; /* diff --git a/source3/smbd/process.c b/source3/smbd/process.c index c99c75ebe87..79ca91fe820 100644 --- a/source3/smbd/process.c +++ b/source3/smbd/process.c @@ -629,6 +629,7 @@ static bool init_smb_request(struct smb_request *req, req->smb2req = NULL; req->priv_paths = NULL; req->chain = NULL; + req->posix_pathnames = lp_posix_pathnames(); smb_init_perfcount_data(&req->pcd); /* Ensure we have at least wct words and 2 bytes of bcc. */