Revert "Work around missing EISDIR errno values."

This reverts the remaining part of commit
ff61d9fc99.
This commit is contained in:
Johannes Sixt
2007-11-15 22:26:49 +01:00
parent fab21181f4
commit e8586bac15

9
refs.c
View File

@@ -1059,15 +1059,6 @@ static int log_ref_write(const char *ref_name, const unsigned char *old_sha1,
if (!(oflags & O_CREAT) && errno == ENOENT)
return 0;
#ifdef __MINGW32__
if ((oflags & O_CREAT) && errno == EACCES) {
struct stat st;
if (stat(log_file, &st) == 0 && S_ISDIR(st.st_mode))
errno = EISDIR;
else
errno = EACCES;
}
#endif
if ((oflags & O_CREAT) && errno == EISDIR) {
if (remove_empty_directories(log_file)) {
return error("There are still logs under '%s'",