execvp() runs programs from cwd even if '.' is not in PATH

Eric Blake ebb9@byu.net
Thu Dec 17 13:59:00 GMT 2009


According to Corinna Vinschen on 11/20/2009 3:59 AM:
> On Nov 20 09:48, Christian Franke wrote:
>> execvp() and the other 'p' variants of exec run programs also from
>> current directory even if '.' is not in the PATH.
> 
> If Cygwin doesn't find the executable in $PATH, the string is used
> literally when calling spawn_guts, which in turn converts the incoming
> path to an absolute Windows path, which obviously works fine.
> 
> This is a bug and the fix is easy, but it's not a regression, so we
> should better stick to it until after 1.7.1.

Are you planning on checking in the fix now?

-- 
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9@byu.net



More information about the Cygwin-developers mailing list