From adc846ad48022aa43a0ac6f9aec504d2d7710cf7 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Mon, 25 May 2015 17:24:33 +0300 Subject: [PATCH] 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. --- lib-src/etags.c | 5 +++++ 1 file changed, 5 insertions(+) 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) -- 2.39.2