summaryrefslogtreecommitdiff
path: root/source3/torture
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-10-26 14:23:39 +1100
committerAndrew Bartlett <abartlet@samba.org>2012-10-26 10:07:01 +0200
commitcb50e85a5a054eeb59bf4c27c886679285732548 (patch)
treed2065d4846b4072c446afdae5c6e0edde00b7ef9 /source3/torture
parente146fe5ef96c1522175a8e81db15d1e8879e5652 (diff)
downloadsamba-cb50e85a5a054eeb59bf4c27c886679285732548.tar.gz
samba-cb50e85a5a054eeb59bf4c27c886679285732548.tar.bz2
samba-cb50e85a5a054eeb59bf4c27c886679285732548.zip
vfstest: set umask(0) in vfstest
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Fri Oct 26 10:07:03 CEST 2012 on sn-devel-104
Diffstat (limited to 'source3/torture')
-rw-r--r--source3/torture/vfstest.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/torture/vfstest.c b/source3/torture/vfstest.c
index 72156a5752..dd3787b658 100644
--- a/source3/torture/vfstest.c
+++ b/source3/torture/vfstest.c
@@ -34,6 +34,7 @@
#include "messages.h"
#include "libcli/security/security.h"
#include "lib/smbd_shim.h"
+#include "system/filesys.h"
/* List to hold groups of commands */
static struct cmd_list {
@@ -483,6 +484,10 @@ int main(int argc, char *argv[])
poptFreeContext(pc);
+ /* we want total control over the permissions on created files,
+ so set our umask to 0 */
+ umask(0);
+
lp_load_initial_only(get_dyn_CONFIGFILE());
/* TODO: check output */