aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-12-20 21:13:40 -0500
committerMike Frysinger <vapier@gentoo.org>2009-12-20 21:13:40 -0500
commit2b8b95c186881a5abe295efba52d54ee7b8f4979 (patch)
treea816b987ca247c6b1997f8918c3ad71e634df551 /tests/unlink-1.sh
parenttests: make signal code a bit more flexible (diff)
downloadsandbox-2b8b95c186881a5abe295efba52d54ee7b8f4979.tar.gz
sandbox-2b8b95c186881a5abe295efba52d54ee7b8f4979.tar.bz2
sandbox-2b8b95c186881a5abe295efba52d54ee7b8f4979.zip
libsandbox: catch calls to remove()
People rarely use this, but all it takes is one lame package. URL: http://bugs.gentoo.org/297684 Reported-by: Pacho Ramos <pacho@gentoo.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'tests/unlink-1.sh')
-rwxr-xr-xtests/unlink-1.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/unlink-1.sh b/tests/unlink-1.sh
new file mode 100755
index 0000000..74d4403
--- /dev/null
+++ b/tests/unlink-1.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+# make sure we catch openat with relative path
+[ "${at_xfail}" = "yes" ] && exit 77 # see trace-0
+
+export SANDBOX_LOG=$PWD/sb.log
+unlink-0 -1 f
+test -e sb.log