]> Savannah Git Hosting - gnulib.git/commitdiff
execute, spawn-pipe: Escape '*' characters in arguments on Windows.
authorBruno Haible <bruno@clisp.org>
Wed, 9 May 2012 01:40:26 +0000 (03:40 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 9 May 2012 01:40:26 +0000 (03:40 +0200)
* lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.

ChangeLog
lib/w32spawn.h

index d329c3a13f0b5d1864295f058de964321203590d..ba38632bc346cb5a155a10f7434e41a8176abba1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-05-08  Bruno Haible  <bruno@clisp.org>
+
+       execute, spawn-pipe: Escape '*' characters in arguments on Windows.
+       * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
+
 2012-05-08  Bruno Haible  <bruno@clisp.org>
 
        Tests for module 'system-quote'.
index 4cdb843442a0c995438657f324d8782d8d639917..bbc7a3d4d4e2e0bee435071fcd31c3d4c55307d1 100644 (file)
@@ -115,8 +115,10 @@ undup_safer_noinherit (int tempfd, int origfd)
        \" -> "
        \\\" -> \"
        \\\\\" -> \\"
+   - '*' characters may get expanded or lead to a failure with error code
+     ERROR_PATH_NOT_FOUND.
  */
-#define SHELL_SPECIAL_CHARS "\"\\ \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037"
+#define SHELL_SPECIAL_CHARS "\"\\ \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037*"
 #define SHELL_SPACE_CHARS " \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037"
 static char **
 prepare_spawn (char **argv)