]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix last change in etags.c that broke tagging compresed files
authorEli Zaretskii <eliz@gnu.org>
Mon, 25 May 2015 14:24:33 +0000 (17:24 +0300)
committerEli Zaretskii <eliz@gnu.org>
Mon, 25 May 2015 14:24:33 +0000 (17:24 +0300)
* 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

index 301dd3d8c0cdca2550837e6a74f13542e6f821ec..4b99e3927283f424937b30596a959d8b765433a1 100644 (file)
@@ -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)