summaryrefslogtreecommitdiffstats
path: root/t/recipes/odd-inputs/source/debian-source-dir-traversal-1/build-spec/pre-build
diff options
context:
space:
mode:
Diffstat (limited to 't/recipes/odd-inputs/source/debian-source-dir-traversal-1/build-spec/pre-build')
-rwxr-xr-xt/recipes/odd-inputs/source/debian-source-dir-traversal-1/build-spec/pre-build10
1 files changed, 10 insertions, 0 deletions
diff --git a/t/recipes/odd-inputs/source/debian-source-dir-traversal-1/build-spec/pre-build b/t/recipes/odd-inputs/source/debian-source-dir-traversal-1/build-spec/pre-build
new file mode 100755
index 0000000..06c7bbe
--- /dev/null
+++ b/t/recipes/odd-inputs/source/debian-source-dir-traversal-1/build-spec/pre-build
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+dir="$1"
+
+# link to index file for the lab entry
+# - NB: This should not trigger source-contains-unsafe-symlink
+# because the link it self is not unsafe (i.e. it is safe
+# relative to unpacked, but unsafe relative to debfiles)
+
+ln -sf ../../index "$dir/debian/source/git-patches"