From aa3de1af836fb58f4d28214154afc804e85e49f9 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Wed, 9 May 2012 03:40:26 +0200 Subject: [PATCH] execute, spawn-pipe: Escape '*' characters in arguments on Windows. * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character. --- ChangeLog | 5 +++++ lib/w32spawn.h | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d329c3a13..ba38632bc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2012-05-08 Bruno Haible + execute, spawn-pipe: Escape '*' characters in arguments on Windows. + * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character. + +2012-05-08 Bruno Haible + Tests for module 'system-quote'. * modules/system-quote-tests: New file. * tests/test-system-quote.sh: New file. diff --git a/lib/w32spawn.h b/lib/w32spawn.h index 4cdb84344..bbc7a3d4d 100644 --- a/lib/w32spawn.h +++ b/lib/w32spawn.h @@ -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) -- 2.11.0