diff options
author | Niels Thykier <niels@thykier.net> | 2018-04-07 10:41:20 +0000 |
---|---|---|
committer | Niels Thykier <niels@thykier.net> | 2018-04-07 10:41:20 +0000 |
commit | 1db0bd881f3329198415a08af61d01b0b8ba92ed (patch) | |
tree | f7c5236012dc31fa5c2b596c37e52fecde09f8f2 /t/dh_usrlocal | |
parent | cd9fc58e77636b1c1506df967a796f96dbd77296 (diff) | |
download | debhelper-1db0bd881f3329198415a08af61d01b0b8ba92ed.tar.gz |
dh_usrlocal: Abort on known unsafe directory names
Signed-off-by: Niels Thykier <niels@thykier.net>
Diffstat (limited to 't/dh_usrlocal')
-rwxr-xr-x | t/dh_usrlocal/01-basic.t | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/t/dh_usrlocal/01-basic.t b/t/dh_usrlocal/01-basic.t index c11b353f..f469e911 100755 --- a/t/dh_usrlocal/01-basic.t +++ b/t/dh_usrlocal/01-basic.t @@ -61,6 +61,7 @@ each_compat_subtest { rm_files(@scripts); install_dir('debian/debhelper/usr/local/foo/dir/somewhere'); install_dir('debian/debhelper/usr/local/bar/another-dir/elsewhere'); + install_dir('debian/debhelper/usr/local/baz/foo+bar/thing'); ok(run_dh_tool('dh_usrlocal')); @@ -71,6 +72,9 @@ each_compat_subtest { '/usr/local/bar 02775 root staff', '/usr/local/bar/another-dir 02775 root staff', '/usr/local/bar/another-dir/elsewhere 02775 root staff', + '/usr/local/baz 02775 root staff', + '/usr/local/baz/foo+bar 02775 root staff', + '/usr/local/baz/foo+bar/thing 02775 root staff', '/usr/local/foo 02775 root staff', '/usr/local/foo/dir 02775 root staff', '/usr/local/foo/dir/somewhere 02775 root staff', @@ -79,6 +83,8 @@ each_compat_subtest { is_deeply(\@prerm, [ '/usr/local/bar/another-dir/elsewhere', '/usr/local/bar/another-dir', + '/usr/local/baz/foo+bar/thing', + '/usr/local/baz/foo+bar', '/usr/local/foo/dir/somewhere', '/usr/local/foo/dir', ], "Correct dir removal") |