From: Björn Jacke Date: Sun, 12 Aug 2012 13:51:30 +0000 (+0200) Subject: s3: skip loading vfs modules for printer connections X-Git-Tag: samba-4.0.0beta6~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f7403d838f37f1d06a23d7ca573ebf6b0d692421;p=thirdparty%2Fsamba.git s3: skip loading vfs modules for printer connections Autobuild-User(master): Björn Jacke Autobuild-Date(master): Sun Aug 12 23:40:23 CEST 2012 on sn-devel-104 --- diff --git a/source3/smbd/vfs.c b/source3/smbd/vfs.c index 474e476f3d5..1438f6834d3 100644 --- a/source3/smbd/vfs.c +++ b/source3/smbd/vfs.c @@ -328,6 +328,12 @@ bool smbd_vfs_init(connection_struct *conn) /* Normal share - initialise with disk access functions */ vfs_init_default(conn); + + /* No need to load vfs modules for printer connections */ + if (conn->printer) { + return True; + } + vfs_objects = lp_vfs_objects(SNUM(conn)); /* Override VFS functions if 'vfs object' was not specified*/