From: dinesh Date: Thu, 26 May 2022 05:06:04 +0000 (+0530) Subject: smbd: Bypass the vfs_gethandle data for default share IPC$ X-Git-Tag: tevent-0.13.0~61 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=21b9734cf2e71936c75326711f3b95b784ed8be8;p=thirdparty%2Fsamba.git 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 --- 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