From f7403d838f37f1d06a23d7ca573ebf6b0d692421 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B6rn=20Jacke?= Date: Sun, 12 Aug 2012 15:51:30 +0200 Subject: [PATCH] s3: skip loading vfs modules for printer connections MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Autobuild-User(master): Björn Jacke Autobuild-Date(master): Sun Aug 12 23:40:23 CEST 2012 on sn-devel-104 --- source3/smbd/vfs.c | 6 ++++++ 1 file changed, 6 insertions(+) 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*/ -- 2.11.4.GIT