diff options
author | Martin Quinson <martin.quinson@loria.fr> | 2013-09-03 08:04:59 +0200 |
---|---|---|
committer | Martin Quinson <martin.quinson@loria.fr> | 2013-09-03 08:04:59 +0200 |
commit | 80aa9a1b9fd15cb0321e8118d8b2229e15150e07 (patch) | |
tree | edc30aa85c0d962945df047798f3c422111b95f4 | |
parent | 1c0b3c6f16e4dcf3f06dbe8201c9b551775e35fd (diff) | |
download | quilt-80aa9a1b9fd15cb0321e8118d8b2229e15150e07.tar.gz |
quilt/fold.in: make it work with filenames with spaces
-rw-r--r-- | quilt.changes | 7 | ||||
-rw-r--r-- | quilt/fold.in | 3 |
2 files changed, 10 insertions, 0 deletions
diff --git a/quilt.changes b/quilt.changes index 9008715..ff2a576 100644 --- a/quilt.changes +++ b/quilt.changes @@ -1,4 +1,11 @@ ------------------------------------------------------------------- +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 - Makefile: Fix "find -perm" usage. 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 |