summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2012-08-12 15:51:30 +0200
committerBjoern Jacke <bj@sernet.de>2012-08-12 23:40:23 +0200
commitf7403d838f37f1d06a23d7ca573ebf6b0d692421 (patch)
tree30de17f417f46f721e832e12acc9829e05fabe84 /source3
parent4631723c988b46be8af4e67f5aea9187b08b9187 (diff)
downloadsamba-f7403d838f37f1d06a23d7ca573ebf6b0d692421.tar.gz
samba-f7403d838f37f1d06a23d7ca573ebf6b0d692421.tar.bz2
samba-f7403d838f37f1d06a23d7ca573ebf6b0d692421.zip
s3: skip loading vfs modules for printer connections
Autobuild-User(master): Björn Jacke <bj@sernet.de> Autobuild-Date(master): Sun Aug 12 23:40:23 CEST 2012 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/vfs.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/smbd/vfs.c b/source3/smbd/vfs.c
index 474e476f3d..1438f6834d 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*/