urban's changes for nosuid,nodev
authorGerald Carter <jerry@samba.org>
Fri, 13 Feb 2004 17:32:20 +0000 (17:32 +0000)
committerGerald Carter <jerry@samba.org>
Fri, 13 Feb 2004 17:32:20 +0000 (17:32 +0000)
(This used to be commit ed46d9aef3b423f583475da77db672b685ddf531)

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;