Update to smbd/service.c to fix SIGSEGV with VFS - Samba 2.2 branch

Brad Sahr bsahr at macromedia.com
Wed Nov 1 23:33:10 GMT 2000


I believe that the following correctly addresses the SIGSEGV that was
occuring with the VFS feature. When WITH_VFS was true, code to initialize
the vfs_ops structure within the connection_struct did not exist when the
connection being made was for a non-VFS backed share (as in the case of
ipc$), leading to execution at address 0x0.

The audit sample now appears to be working correctly after applying this fix
to my local copy of the SAMBA_2_2 branch.

Brad Sahr

--- ../../../samba.102500/source/smbd/service.c	Thu Oct 26 12:12:25 2000
+++ service.c	Wed Nov  1 13:45:45 2000
@@ -495,9 +495,12 @@
 	    return NULL;
 #endif /* HAVE_LIBDL */

-	} else /* Normal share - initialise with disk access functions */
-#else /* WITH_VFS */
+	} else {
+            /* Normal share - initialise with disk access functions */
 	    vfs_init_default(conn);
+	}
+#else /* WITH_VFS */
+	vfs_init_default(conn);
 #endif /* WITH_VFS */

 	/* execute any "root preexec = " line */





More information about the samba-technical mailing list