mirror of
https://github.com/boostorg/build.git
synced 2026-02-15 00:52:16 +00:00
Checking whether a command can be spawned directly (as opposed to invoking it via an external shell) in Boost Build's execnt.c module now correctly skips all leading whitespace characters and not just tabs and spaces.
[SVN r78990]
This commit is contained in:
@@ -719,7 +719,8 @@ long can_spawn( char const * command )
|
||||
char inquote = 0;
|
||||
|
||||
/* Move to the first non-whitespace. */
|
||||
command += strspn( command, " \t" );
|
||||
while ( isspace( *command ) )
|
||||
++command;
|
||||
|
||||
p = command;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user