merging smbmnt fix from 3.0
authorGerald Carter <jerry@samba.org>
Thu, 19 Feb 2004 16:48:16 +0000 (16:48 +0000)
committerGerald Carter <jerry@samba.org>
Thu, 19 Feb 2004 16:48:16 +0000 (16:48 +0000)
(This used to be commit ea83c341c9ff54dfc5d0a941be96e6684f565d7d)

source3/client/smbmnt.c

index c04be3b7af22b412770c6843d8f614c1a3f7b8bd..753a31c3139f0f0b6cee95f5694b28ec81c03951 100644 (file)
@@ -240,7 +240,7 @@ do_mount(char *share_name, unsigned int flags, struct smb_mount_data *data)
                         data.dir_mode |= S_IXOTH;
         }
 
-       flags = MS_MGC_VAL;
+       flags = MS_MGC_VAL | MS_NOSUID | MS_NODEV;
 
        if (mount_ro) flags |= MS_RDONLY;