* 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.
This commit is contained in:
Corinna Vinschen
2008-10-09 09:43:02 +00:00
parent 4e88323ba0
commit c32849c5bc
3 changed files with 10 additions and 6 deletions

View File

@ -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.