summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiko Tyni <ntyni@debian.org>2011-05-06 18:03:59 +0300
committergregor herrmann <gregoa@debian.org>2023-07-02 21:14:47 +0200
commitcb7f19aa251878862d9cdfba11a1989094555750 (patch)
tree6f9cba6958ce44fae87267d0b8a6390700d3d070
parent4c0e19f742293a676585ac93b6fb903c0409d4c0 (diff)
[PATCH] Don't pass the full path of the file to parse() in restricted mode
Bug-Debian: https://bugs.debian.org/613199 Bug: https://rt.cpan.org/Public/Bug/Display.html?id=67996 If the build directory name contains characters like '+', tests 11 and 12 of t/13restricted.t fail because the opensp library considers the directory unsafe and skips it. (see PosixStorageManager::isSafe() in lib/PosixStorage.cxx of opensp-1.5.2) (adjusted to apply to file with DOS line endings) Gbp-Pq: Name binnmu_rebuild_fix.patch
-rwxr-xr-xt/13restricted.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/13restricted.t b/t/13restricted.t
index ea91f25..2bb095d 100755
--- a/t/13restricted.t
+++ b/t/13restricted.t
@@ -53,7 +53,7 @@ isnt($h8->{ok2}, 0, 'must not read paths with ./');
$h8->{ok1} = 0;
$h8->{ok2} = 0;
-my $sd = File::Spec->catfile(File::Spec->rel2abs('.'), 'samples');
+my $sd = 'samples';
$p->search_dirs($sd);