summaryrefslogtreecommitdiffstats
path: root/selftest
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-02-04 11:26:46 +0100
committerStefan Metzmacher <metze@samba.org>2009-02-10 11:47:01 +0100
commitbb88b038467284d2ef8bdd7236bc07492b6e22ce (patch)
tree104919657e828a6f4513651b7ef81f3145f0c36b /selftest
parent3c1feb82c87fe97b75ad671cd491d02432f1a839 (diff)
downloadsamba-bb88b038467284d2ef8bdd7236bc07492b6e22ce.tar.gz
samba-bb88b038467284d2ef8bdd7236bc07492b6e22ce.tar.xz
samba-bb88b038467284d2ef8bdd7236bc07492b6e22ce.zip
selftest: Samba3 protect against removing /*
metze
Diffstat (limited to 'selftest')
-rw-r--r--selftest/target/Samba3.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/selftest/target/Samba3.pm b/selftest/target/Samba3.pm
index 49984f17c82..fdff4b76e91 100644
--- a/selftest/target/Samba3.pm
+++ b/selftest/target/Samba3.pm
@@ -386,6 +386,9 @@ sub provision($$$$$$)
##
## create the test directory layout
##
+ die ("prefix_abs = ''") if $prefix_abs eq "";
+ die ("prefix_abs = '/'") if $prefix_abs eq "/";
+
mkdir($prefix_abs, 0777);
print "CREATE TEST ENVIRONMENT IN '$prefix'...";
system("rm -rf $prefix_abs/*");