From ce9117f859609ed67b1deef658ed6cef6c6590ae Mon Sep 17 00:00:00 2001 From: joey Date: Thu, 19 Feb 2004 18:10:30 +0000 Subject: r1664: * dh_movefiles: use xargs -0 to safely remove files with whitespace, etc. Patch from Yann Dirson. Closes: #233226 --- dh_movefiles | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); } } -- cgit v1.2.3