From 75808db17caf8b960b351e3408e74142f4c85aac Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 14 Apr 2024 15:42:30 +0200 Subject: Adding upstream version 2.117.0. Signed-off-by: Daniel Baumann --- .../names/files-tar-traps/build-spec/debian/dirs | 1 + .../files-tar-traps/build-spec/debian/install | 1 + .../names/files-tar-traps/build-spec/fill-values | 3 +++ .../names/files-tar-traps/build-spec/pre-build | 28 ++++++++++++++++++++++ .../checks/files/names/files-tar-traps/eval/desc | 2 ++ .../checks/files/names/files-tar-traps/eval/hints | 1 + 6 files changed, 36 insertions(+) create mode 100644 t/recipes/checks/files/names/files-tar-traps/build-spec/debian/dirs create mode 100644 t/recipes/checks/files/names/files-tar-traps/build-spec/debian/install create mode 100644 t/recipes/checks/files/names/files-tar-traps/build-spec/fill-values create mode 100755 t/recipes/checks/files/names/files-tar-traps/build-spec/pre-build create mode 100644 t/recipes/checks/files/names/files-tar-traps/eval/desc create mode 100644 t/recipes/checks/files/names/files-tar-traps/eval/hints (limited to 't/recipes/checks/files/names/files-tar-traps') diff --git a/t/recipes/checks/files/names/files-tar-traps/build-spec/debian/dirs b/t/recipes/checks/files/names/files-tar-traps/build-spec/debian/dirs new file mode 100644 index 0000000..8c0b6f0 --- /dev/null +++ b/t/recipes/checks/files/names/files-tar-traps/build-spec/debian/dirs @@ -0,0 +1 @@ +/strangename diff --git a/t/recipes/checks/files/names/files-tar-traps/build-spec/debian/install b/t/recipes/checks/files/names/files-tar-traps/build-spec/debian/install new file mode 100644 index 0000000..e85577a --- /dev/null +++ b/t/recipes/checks/files/names/files-tar-traps/build-spec/debian/install @@ -0,0 +1 @@ +strangename strangename diff --git a/t/recipes/checks/files/names/files-tar-traps/build-spec/fill-values b/t/recipes/checks/files/names/files-tar-traps/build-spec/fill-values new file mode 100644 index 0000000..11058e5 --- /dev/null +++ b/t/recipes/checks/files/names/files-tar-traps/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: files-tar-traps +Description: Test tags for tar common bugs diff --git a/t/recipes/checks/files/names/files-tar-traps/build-spec/pre-build b/t/recipes/checks/files/names/files-tar-traps/build-spec/pre-build new file mode 100755 index 0000000..bbc0e83 --- /dev/null +++ b/t/recipes/checks/files/names/files-tar-traps/build-spec/pre-build @@ -0,0 +1,28 @@ +#!/bin/sh +dir="$1/strangename" +mkdir -p "$dir" + +# All file names are quoted twice, once for the shell and once for tar +# (-T) + +# File named +echo "foo" > "$dir/'\\ " +# File named +echo "bar" > "$dir/\\" +# File named +# - causes md5sums-lists-nonexistent-file +echo "bar" > "$dir/\\\\" + +# File named ab +# - causes md5sums-lists-nonexistent-file +echo "bar" > "$dir/a\\\\b" + +# Symlink to file named ab +ln -s 'a\\b' "$dir/link-to-weird-file1" + +# Because the above is not insane enough... +# If Lintian gets this wrong, it will become an +# "unsafe-symlink". +mkdir -p "$dir/\\.\\./\\.\\." +echo "golf" > "$dir/\\.\\./\\.\\./\\.\\." +ln -s '\.\./\.\./\.\.' "$dir/some-file" diff --git a/t/recipes/checks/files/names/files-tar-traps/eval/desc b/t/recipes/checks/files/names/files-tar-traps/eval/desc new file mode 100644 index 0000000..2abeaad --- /dev/null +++ b/t/recipes/checks/files/names/files-tar-traps/eval/desc @@ -0,0 +1,2 @@ +Testname: files-tar-traps +Check: files/names diff --git a/t/recipes/checks/files/names/files-tar-traps/eval/hints b/t/recipes/checks/files/names/files-tar-traps/eval/hints new file mode 100644 index 0000000..89369e7 --- /dev/null +++ b/t/recipes/checks/files/names/files-tar-traps/eval/hints @@ -0,0 +1 @@ +files-tar-traps (binary): file-name-ends-in-whitespace [strangename/strangename/'\ ] -- cgit v1.2.3