Browse Source

Fix unquoting of input file names.

* src/names.c (read_next_name): Unquote file names coming from the
-T argument.  Bug reported by Nicolas Dudebout.
* THANKS: Update.
Sergey Poznyakoff 11 years ago
parent
commit
6e8bca8b56
2 changed files with 3 additions and 0 deletions
  1. 1 0
      THANKS
  2. 2 0
      src/names.c

+ 1 - 0
THANKS

@@ -368,6 +368,7 @@ Neil Faulks		[email protected]
 Neil Jerram		[email protected]
 Nelson H.F. Beebe	[email protected]
 Nick Barron		[email protected]
+Nicolas Dudebout	[email protected]
 Noah Friedman		[email protected]
 Noel Cragg		[email protected]
 Norbert Kiesel		[email protected]

+ 2 - 0
src/names.c

@@ -492,6 +492,8 @@ read_next_name (struct name_elt *ent, struct name_elt *ret)
 	  ent->v.file.term = 0;
 	  /* fall through */
 	case file_list_success:
+	  if (unquote_option)
+	    unquote_string (name_buffer);
 	  if (handle_option (name_buffer) == 0)
 	    {
 	      name_list_adjust ();