# HG changeset patch # User Bruno Haible # Date 1336527626 -7200 # Node ID 4881110afeb8eb2f027d00d3355b68264c6294d3 # Parent 18d46d47a62ac1a55601bf7a4e1526a2c31e9912 execute, spawn-pipe: Escape '*' characters in arguments on Windows. * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +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'. diff --git a/lib/w32spawn.h b/lib/w32spawn.h --- a/lib/w32spawn.h +++ b/lib/w32spawn.h @@ -115,8 +115,10 @@ \" -> " \\\" -> \" \\\\\" -> \\" + - '*' 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)