Check for .exe file in cygwin_conv_path

So far, when converting from POSIX to Windows notation, cygwin_conv_path
fails to check for .exe suffix, so /path/foo did not return /path/foo.exe
even if this file exists.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2016-12-13 12:21:27 +01:00
parent bc4f996f56
commit 937a2d92e2
1 changed files with 2 additions and 2 deletions

View File

@ -3310,7 +3310,7 @@ cygwin_conv_path (cygwin_conv_path_t what, const void *from, void *to,
p.check ((const char *) from, p.check ((const char *) from,
PC_POSIX | PC_SYM_FOLLOW | PC_SYM_NOFOLLOW_REP PC_POSIX | PC_SYM_FOLLOW | PC_SYM_NOFOLLOW_REP
| PC_NO_ACCESS_CHECK | PC_NOWARN | PC_NO_ACCESS_CHECK | PC_NOWARN
| ((how & CCP_RELATIVE) ? PC_NOFULL : 0)); | ((how & CCP_RELATIVE) ? PC_NOFULL : 0), stat_suffixes);
if (p.error) if (p.error)
{ {
set_errno (p.error); set_errno (p.error);
@ -3355,7 +3355,7 @@ cygwin_conv_path (cygwin_conv_path_t what, const void *from, void *to,
p.check ((const char *) from, p.check ((const char *) from,
PC_POSIX | PC_SYM_FOLLOW | PC_SYM_NOFOLLOW_REP PC_POSIX | PC_SYM_FOLLOW | PC_SYM_NOFOLLOW_REP
| PC_NO_ACCESS_CHECK | PC_NOWARN | PC_NO_ACCESS_CHECK | PC_NOWARN
| ((how & CCP_RELATIVE) ? PC_NOFULL : 0)); | ((how & CCP_RELATIVE) ? PC_NOFULL : 0), stat_suffixes);
if (p.error) if (p.error)
{ {
set_errno (p.error); set_errno (p.error);