From 4983d5838afcab8c675cace0723a3fc284667bec Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 21 Dec 2012 09:22:16 -0800 Subject: [PATCH] Add uint32_t share_access to vuid_cache_entry. Signed-off-by: Jeremy Allison Reviewed-by: Stefan Metzmacher Reviewed-by: Andrew Bartlett --- source3/include/vfs.h | 2 ++ source3/modules/vfs_readonly.c | 1 + source3/smbd/conn.c | 1 + 3 files changed, 4 insertions(+) diff --git a/source3/include/vfs.h b/source3/include/vfs.h index 7da022ef374..2bce1b7956a 100644 --- a/source3/include/vfs.h +++ b/source3/include/vfs.h @@ -150,6 +150,7 @@ /* Bump to version 31 - Samba 4.1.0 will ship with interface version 31 */ /* Leave at 31 - not yet released. Make struct vuid_cache_entry in connection_struct a pointer. */ +/* Leave at 31 - not yet released. Add share_access to vuid_cache_entry. */ #define SMB_VFS_INTERFACE_VERSION 31 @@ -279,6 +280,7 @@ struct vuid_cache_entry { struct auth_session_info *session_info; uint64_t vuid; /* SMB2 compat */ bool read_only; + uint32_t share_access; }; struct vuid_cache { diff --git a/source3/modules/vfs_readonly.c b/source3/modules/vfs_readonly.c index f75db093cc2..445f9478103 100644 --- a/source3/modules/vfs_readonly.c +++ b/source3/modules/vfs_readonly.c @@ -86,6 +86,7 @@ static int readonly_connect(vfs_handle_struct *handle, ent->vuid = UID_FIELD_INVALID; TALLOC_FREE(ent->session_info); ent->read_only = false; + ent->share_access = 0; } conn->vuid_cache->next_entry = 0; } diff --git a/source3/smbd/conn.c b/source3/smbd/conn.c index 1d4444f368f..8f472c0d245 100644 --- a/source3/smbd/conn.c +++ b/source3/smbd/conn.c @@ -118,6 +118,7 @@ static void conn_clear_vuid_cache(connection_struct *conn, uint64_t vuid) TALLOC_FREE(ent->session_info); } ent->read_only = False; + ent->share_access = 0; } } } -- 2.11.4.GIT