From c32849c5bc5de00a65e542ebeaa20e77c59b3357 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Thu, 9 Oct 2008 09:43:02 +0000 Subject: * path.cc (path_conv::is_binary): Always check for GetBinaryType. * syscalls.cc (rename): Fix test for just changing case of name on case insensitive filesystems. --- winsup/cygwin/path.cc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'winsup/cygwin/path.cc') diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc index 47513ae88..9b85a93d9 100644 --- a/winsup/cygwin/path.cc +++ b/winsup/cygwin/path.cc @@ -1299,11 +1299,8 @@ path_conv::is_binary () tmp_pathbuf tp; PWCHAR bintest = tp.w_get (); DWORD bin; - /* Do NOT check for .exe suffix, otherwise rename(2) misbehaves - when renaming files to existing executables with omitted suffix. - strip(1) is a candidate uncovering wrong behaviour here. */ - return exec_state () == is_executable - || GetBinaryTypeW (get_wide_win32_path (bintest), &bin); + + return GetBinaryTypeW (get_wide_win32_path (bintest), &bin); } /* Normalize a Win32 path. -- cgit v1.2.3