s3: smbd: VFS change. Add new field bool posix_pathnames into struct smb_request.
authorJeremy Allison <jra@samba.org>
Tue, 22 Dec 2015 21:35:10 +0000 (13:35 -0800)
committerJeremy Allison <jra@samba.org>
Wed, 23 Dec 2015 17:23:17 +0000 (18:23 +0100)
Initialize from lp_posix_pathnames() global.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <Volker.Lendecke@SerNet.DE>
source3/include/vfs.h
source3/smbd/process.c

index 71e1af981a411bc89e25e17d7b69d8985eecb604..66e4fc6be6816fe7ad23782ba4ec09bdff814a31 100644 (file)
 /* 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;
 };
 
 /*
index c99c75ebe871b8b5b13033ccc98f2905cfd2150c..79ca91fe820892b37cd0993c85e8f033a9a14ed5 100644 (file)
@@ -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. */