diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 13:42:30 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 13:42:30 +0000 |
commit | 75808db17caf8b960b351e3408e74142f4c85aac (patch) | |
tree | 7989e9c09a4240248bf4658a22208a0a52d991c4 /t/recipes/checks/control-files/control-field-traversal-4 | |
parent | Initial commit. (diff) | |
download | lintian-75808db17caf8b960b351e3408e74142f4c85aac.tar.xz lintian-75808db17caf8b960b351e3408e74142f4c85aac.zip |
Adding upstream version 2.117.0.upstream/2.117.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 't/recipes/checks/control-files/control-field-traversal-4')
5 files changed, 33 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" diff --git a/t/recipes/checks/control-files/control-field-traversal-4/eval/desc b/t/recipes/checks/control-files/control-field-traversal-4/eval/desc new file mode 100644 index 0000000..f31ff4d --- /dev/null +++ b/t/recipes/checks/control-files/control-field-traversal-4/eval/desc @@ -0,0 +1,4 @@ +Testname: control-field-traversal-4 +Check: control-files +Output-Format: EWI +Match-Strategy: literal diff --git a/t/recipes/checks/control-files/control-field-traversal-4/eval/literal b/t/recipes/checks/control-files/control-field-traversal-4/eval/literal new file mode 100644 index 0000000..c1dd694 --- /dev/null +++ b/t/recipes/checks/control-files/control-field-traversal-4/eval/literal @@ -0,0 +1 @@ +warning: tainted binary package 'control-field-traversal-4', skipping |