]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Bypass the vfs_gethandle data for default share IPC$
authordinesh <dinesh.kumar.reddy@ibm.com>
Thu, 26 May 2022 05:06:04 +0000 (10:36 +0530)
committerJeremy Allison <jra@samba.org>
Fri, 22 Jul 2022 05:27:53 +0000 (05:27 +0000)
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 <dinesh.kumar.reddy@ibm.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Fri Jul 22 05:27:53 UTC 2022 on sn-devel-184

source3/smbd/smb2_service.c

index 59797d7e5ae2fbdeff624fba2915ec94fab72fb1..e7a382415150d749370fb114328832e1dacd6ba3 100644 (file)
@@ -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