>From 216a39b887318927d4147d98f96093ab57a4d9ea Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 21 Dec 2012 15:16:10 -0800 Subject: [PATCH] Recent coverity changes added directory_create_or_exist() checks to many directories. These may not be needed, but in the meantime - ensure "make test" works again by chmod'ing the created test directories from 0777 to 0755. Signed-off-by: Jeremy Allison --- selftest/target/Samba3.pm | 7 +++++++ selftest/target/Samba4.pm | 6 ++++++ 2 files changed, 13 insertions(+), 0 deletions(-) diff --git a/selftest/target/Samba3.pm b/selftest/target/Samba3.pm index ea2e21d..adca52f 100755 --- a/selftest/target/Samba3.pm +++ b/selftest/target/Samba3.pm @@ -765,6 +765,13 @@ sub provision($$$$$$) mkdir($_, 0777) foreach(@dirs); ## + ## lockdir and piddir must be 0755 + ## + chmod 0755, $lockdir; + chmod 0755, $piddir; + + + ## ## create ro and msdfs share layout ## diff --git a/selftest/target/Samba4.pm b/selftest/target/Samba4.pm index 5988b83..ba37504 100644 --- a/selftest/target/Samba4.pm +++ b/selftest/target/Samba4.pm @@ -555,6 +555,12 @@ sub provision_raw_step1($$) mkdir($_, 0777) foreach (@{$ctx->{directories}}); + ## + ## lockdir and piddir must be 0755 + ## + chmod 0755, $ctx->{lockdir}; + chmod 0755, $ctx->{piddir}; + unless (open(CONFFILE, ">$ctx->{smb_conf}")) { warn("can't open $ctx->{smb_conf}$?"); return undef; -- 1.7.7.3