quilt/quilt-fix-quilt-diff-z-on-files-with-spaces-in-name.patch

27 lines
940 B
Diff
Raw Normal View History

From: Jean Delvare <jdelvare@suse.de>
Date: Mon, 10 Feb 2014 13:11:34 +0100
Subject: patchfns: Fix "quilt diff -z" on files with spaces in their names
Patch-mainline: yes
Git-commit: 6051b9347f59f761ef744cb7cc813d5eadd86b55
References: bnc#872719
Before this fix, "quilt diff -z" would fail on files with spaces in
their names, with the following error message:
Failed to copy files to temporary directory
---
quilt/scripts/patchfns.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/quilt/scripts/patchfns.in
+++ b/quilt/scripts/patchfns.in
@@ -887,7 +887,7 @@ apply_patch_temporarily()
local prefix=$QUILT_PC/$patch/
[ ${prefix:0:1} == / ] || prefix=$PWD/$prefix
if ! ( cd $workdir && \
- $QUILT_DIR/scripts/backup-files -B $prefix -r -k -s ${@:--} )
+ $QUILT_DIR/scripts/backup-files -B $prefix -r -k -s "${@:--}" )
then
printf $"Failed to copy files to temporary directory\n" >&2
return 1