From 17923424c4bc8d7f132e174939814baebdbae1a0 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Tue, 25 Jan 2005 20:28:40 +0000 Subject: [PATCH] * path.cc (realpath): Allow to expand with .exe suffix. --- winsup/cygwin/ChangeLog | 4 ++++ winsup/cygwin/path.cc | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 967c83a61..fe2931733 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2005-01-25 Corinna Vinschen + + * path.cc (realpath): Allow to expand with .exe suffix. + 2005-01-22 Christopher Faylor * spawn.cc (spawn_guts): Perform same "cd" as in pinfo::exit below to diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc index f49290ac2..c636fb547 100644 --- a/winsup/cygwin/path.cc +++ b/winsup/cygwin/path.cc @@ -3438,9 +3438,10 @@ cygwin_conv_to_full_posix_path (const char *path, char *posix_path) extern "C" char * realpath (const char *path, char *resolved) { + extern suffix_info stat_suffixes[]; int err; - path_conv real_path (path, PC_SYM_FOLLOW | PC_FULL); + path_conv real_path (path, PC_SYM_FOLLOW | PC_FULL, stat_suffixes); if (real_path.error) err = real_path.error;