aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-03-12 02:57:07 -0400
committerMike Frysinger <vapier@gentoo.org>2009-03-12 09:00:00 -0400
commit55ab6bd7a8056fc1c4c4a2ab3f76c2664b44ed1d (patch)
tree52d5cfbf3484500401c035044a01078ce968c6af /tests/mkdir-2.sh
parentsandbox: pass shell exit status up (diff)
downloadsandbox-55ab6bd7a8056fc1c4c4a2ab3f76c2664b44ed1d.tar.gz
sandbox-55ab6bd7a8056fc1c4c4a2ab3f76c2664b44ed1d.tar.bz2
sandbox-55ab6bd7a8056fc1c4c4a2ab3f76c2664b44ed1d.zip
tests: make sure non-root mkdir works with funky perms
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'tests/mkdir-2.sh')
-rwxr-xr-xtests/mkdir-2.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/mkdir-2.sh b/tests/mkdir-2.sh
new file mode 100755
index 0000000..511c90a
--- /dev/null
+++ b/tests/mkdir-2.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+# make sure `mkdir -p /var` does not trigger sb violations
+# since the paths should already exist
+mkdir-0 0 / 0777
+exit 0