summaryrefslogtreecommitdiff
path: root/dh_movefiles
diff options
context:
space:
mode:
authorjoey <joey>2004-02-19 18:10:30 +0000
committerjoey <joey>2004-02-19 18:10:30 +0000
commitce9117f859609ed67b1deef658ed6cef6c6590ae (patch)
treeb1772cb9c336b202335a7dc371280fde6c95870d /dh_movefiles
parent71261a28861f546ca51a183ea5e55a0db9777416 (diff)
downloaddebhelper-ce9117f859609ed67b1deef658ed6cef6c6590ae.tar.gz
r1664: * dh_movefiles: use xargs -0 to safely remove files with whitespace,version_4.2.3
etc. Patch from Yann Dirson. Closes: #233226
Diffstat (limited to 'dh_movefiles')
-rwxr-xr-xdh_movefiles2
1 files changed, 1 insertions, 1 deletions
diff --git a/dh_movefiles b/dh_movefiles
index 2c8a63fd..7c3e70c6 100755
--- a/dh_movefiles
+++ b/dh_movefiles
@@ -143,7 +143,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
complex_doit("(cd $sourcedir >/dev/null ; tar --create --files-from=$pwd/debian/movelist --file -) | (cd $tmp >/dev/null ;tar xpf -)");
# --remove-files is not used above because tar then doesn't
# preserve hard links
- complex_doit("(cd $sourcedir >/dev/null ; cat $pwd/debian/movelist | xargs rm -f)");
+ complex_doit("(cd $sourcedir >/dev/null ; tr '\\n' '\\0' < $pwd/debian/movelist | xargs -0 -i rm -f '{}')");
doit("rm","-f","debian/movelist");
}
}