summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiko Tyni <ntyni@debian.org>2011-05-06 18:03:59 +0300
committergregor herrmann <gregoa@debian.org>2022-11-23 21:18:35 +0100
commit479b91a95d9aaf73a1e12e7d00f630a62c0be05c (patch)
treeb5a937950b75666906a67ac1ab03f72d14d72af9
parentc6910b223d43d12401c28a4281c618b716072b77 (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);