From 21b9734cf2e71936c75326711f3b95b784ed8be8 Mon Sep 17 00:00:00 2001 From: dinesh Date: Thu, 26 May 2022 10:36:04 +0530 Subject: [PATCH] smbd: Bypass the vfs_gethandle data for default share IPC$ During gpfs_connect for default share of IPC$ not setting the handle data but during the vfs_gpfs_capabilities for the default share IPC$ the get handle data was called and observing error log failed to get vfs_handle->data! so to bypass this error log the condition check if IS_IPC share is added in make_connection_snum while calling SMB_VFS_FS_CAPABILITIES Signed-off-by:Dinesh Reviewed-by: Ralph Boehme Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Fri Jul 22 05:27:53 UTC 2022 on sn-devel-184 --- source3/smbd/smb2_service.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source3/smbd/smb2_service.c b/source3/smbd/smb2_service.c index 59797d7e5ae..e7a38241515 100644 --- a/source3/smbd/smb2_service.c +++ b/source3/smbd/smb2_service.c @@ -843,8 +843,9 @@ NTSTATUS make_connection_snum(struct smbXsrv_connection *xconn, * the same characteristics, which is likely but not guaranteed. */ - conn->fs_capabilities = SMB_VFS_FS_CAPABILITIES(conn, &conn->ts_res); - + if(!IS_IPC(conn) ){ + conn->fs_capabilities = SMB_VFS_FS_CAPABILITIES(conn, &conn->ts_res); + } /* * Print out the 'connected as' stuff here as we need * to know the effective uid and gid we will be using -- 2.47.3