summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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");
}
}