From: Eli Zaretskii Date: Mon, 25 May 2015 14:24:33 +0000 (+0300) Subject: Fix last change in etags.c that broke tagging compresed files X-Git-Tag: emacs-25.0.90~1979 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=adc846ad48022aa43a0ac6f9aec504d2d7710cf7;p=emacs.git Fix last change in etags.c that broke tagging compresed files * lib-src/etags.c (process_file_name) [MSDOS || DOS_NT]: Fix quoting of decompression shell command for MS-Windows/MS-DOS. --- diff --git a/lib-src/etags.c b/lib-src/etags.c index 301dd3d8c0c..4b99e392728 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c @@ -1565,8 +1565,13 @@ process_file_name (char *file, language *lang) inf = NULL; else { +#if MSDOS || defined (DOS_NT) + char *cmd1 = concat (compr->command, " \"", real_name); + char *cmd = concat (cmd1, "\" > ", tmp_name); +#else char *cmd1 = concat (compr->command, " '", real_name); char *cmd = concat (cmd1, "' > ", tmp_name); +#endif free (cmd1); int tmp_errno; if (system (cmd) == -1)