diff options
Diffstat (limited to 't/recipes/checks/control-files/control-field-traversal-4/build-spec')
3 files changed, 28 insertions, 0 deletions
diff --git a/t/recipes/checks/control-files/control-field-traversal-4/build-spec/DEBIAN/control.in b/t/recipes/checks/control-files/control-field-traversal-4/build-spec/DEBIAN/control.in new file mode 100644 index 0000000..3c0318e --- /dev/null +++ b/t/recipes/checks/control-files/control-field-traversal-4/build-spec/DEBIAN/control.in @@ -0,0 +1,12 @@ +Package: [% $source %] +Version: [% $version %] +Architecture: [% $package_architecture %] +Maintainer: [% $author %] +Section: [% $section %] +Priority: optional +Source: ../binary/control-field-traversal-4 +Description: [% $description %] + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/t/recipes/checks/control-files/control-field-traversal-4/build-spec/fill-values b/t/recipes/checks/control-files/control-field-traversal-4/build-spec/fill-values new file mode 100644 index 0000000..b8508ba --- /dev/null +++ b/t/recipes/checks/control-files/control-field-traversal-4/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: deb +Testname: control-field-traversal-4 +Description: Test for directory traversal issues via field names or values diff --git a/t/recipes/checks/control-files/control-field-traversal-4/build-spec/pre-data b/t/recipes/checks/control-files/control-field-traversal-4/build-spec/pre-data new file mode 100755 index 0000000..c14dcc8 --- /dev/null +++ b/t/recipes/checks/control-files/control-field-traversal-4/build-spec/pre-data @@ -0,0 +1,13 @@ +#!/bin/sh + +set -e + +rootdir="$1" +name="$2" + +docdir="$rootdir/usr/share/doc" + +rm -rf "$docdir" + +mkdir -p "$docdir/dpkg" +ln -sf dpkg "$docdir/$name" |