summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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*/