From 80aa9a1b9fd15cb0321e8118d8b2229e15150e07 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Tue, 3 Sep 2013 08:04:59 +0200 Subject: quilt/fold.in: make it work with filenames with spaces --- quilt.changes | 7 +++++++ quilt/fold.in | 3 +++ 2 files changed, 10 insertions(+) diff --git a/quilt.changes b/quilt.changes index 9008715..ff2a576 100644 --- a/quilt.changes +++ b/quilt.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Sep 3 08:02:52 CEST 2013 - mquinson@debian.org + +- quilt/fold.in: make it work with filenames with spaces + (closes http://savannah.nongnu.org/bugs/?39833) + Report and patch by David Leonard, thanks! + ------------------------------------------------------------------- Fri May 24 15:12:50 CEST 2013 - jdelvare@suse.de diff --git a/quilt/fold.in b/quilt/fold.in index f3526f1..0115d77 100644 --- a/quilt/fold.in +++ b/quilt/fold.in @@ -99,6 +99,8 @@ patch -d ${SUBDIR:-.} $QUILT_PATCH_OPTS -p$opt_strip_level \ [ -n "$opt_force" ] && failed= +saved_IFS=$IFS +IFS=$'\n' if [ -z "$failed" ] then # Copy additional files from workdir to the backup directory @@ -132,6 +134,7 @@ then rm -rf $workdir exit 1 fi +IFS=$saved_IFS rm -rf $workdir exit 0 -- cgit