summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/path.cc
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2008-10-09 09:43:02 +0000
committerCorinna Vinschen <corinna@vinschen.de>2008-10-09 09:43:02 +0000
commitc32849c5bc5de00a65e542ebeaa20e77c59b3357 (patch)
treef5e5b1d5bbb750fbe11eba86e9460065495556e3 /winsup/cygwin/path.cc
parent4e88323ba05a8667c86fe50686a68322b3eaa779 (diff)
downloadcygnal-c32849c5bc5de00a65e542ebeaa20e77c59b3357.tar.gz
cygnal-c32849c5bc5de00a65e542ebeaa20e77c59b3357.tar.bz2
cygnal-c32849c5bc5de00a65e542ebeaa20e77c59b3357.zip
* 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.
Diffstat (limited to 'winsup/cygwin/path.cc')
-rw-r--r--winsup/cygwin/path.cc7
1 files changed, 2 insertions, 5 deletions
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.