]> git.donarmstrong.com Git - debhelper.git/commitdiff
r1664: * dh_movefiles: use xargs -0 to safely remove files with whitespace, version_4.2.3
authorjoey <joey>
Thu, 19 Feb 2004 18:10:30 +0000 (18:10 +0000)
committerjoey <joey>
Thu, 19 Feb 2004 18:10:30 +0000 (18:10 +0000)
     etc. Patch from Yann Dirson. Closes: #233226

dh_movefiles

index 2c8a63fd934bbc32f601839caeb331700f765b41..7c3e70c612556a77274a559abd4c76f10fa7f460 100755 (executable)
@@ -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");
        }
 }