From cb50e85a5a054eeb59bf4c27c886679285732548 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 26 Oct 2012 14:23:39 +1100 Subject: vfstest: set umask(0) in vfstest Autobuild-User(master): Andrew Bartlett Autobuild-Date(master): Fri Oct 26 10:07:03 CEST 2012 on sn-devel-104 --- source3/torture/vfstest.c | 5 +++++ 1 file changed, 5 insertions(+) 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 */ -- cgit