summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-04-21 19:43:25 +0000
committerGerald Carter <jerry@samba.org>2003-04-21 19:43:25 +0000
commit79d3731d98836e6a502eb21d3d50df381b67600c (patch)
treefe7daf249a07907cf058a440012ae01008b53d40 /source3/smbd
parentefc8dac53869b87d9a18cb3f7943bae9f1e8c306 (diff)
downloadsamba-79d3731d98836e6a502eb21d3d50df381b67600c.tar.gz
samba-79d3731d98836e6a502eb21d3d50df381b67600c.tar.bz2
samba-79d3731d98836e6a502eb21d3d50df381b67600c.zip
* fix segfault when no vfs objects defined
* add "sid=..." to 'net groupmap add' (This used to be commit e5f6676639b5552f7dec90091c53cf14e78088ee)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/vfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/vfs.c b/source3/smbd/vfs.c
index 06aca51322..75bcb09917 100644
--- a/source3/smbd/vfs.c
+++ b/source3/smbd/vfs.c
@@ -322,8 +322,8 @@ BOOL smbd_vfs_init(connection_struct *conn)
vfs_init_default(conn);
vfs_objects = lp_vfsobj(SNUM(conn));
- /* Override VFS functions if 'vfs object' was specified*/
- if (!vfs_objects)
+ /* Override VFS functions if 'vfs object' was not specified*/
+ if (!vfs_objects || !vfs_objects[0])
return True;
for(i=0; i<SMB_VFS_OP_LAST; i++) {