From e8586bac156301508f66c0644d6614a003229e2c Mon Sep 17 00:00:00 2001 From: Johannes Sixt Date: Thu, 15 Nov 2007 22:26:49 +0100 Subject: [PATCH] Revert "Work around missing EISDIR errno values." This reverts the remaining part of commit ff61d9fc99a60a7c0320538a278d5f58680e120d. --- refs.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/refs.c b/refs.c index aa8045d89d..aff02cd09d 100644 --- a/refs.c +++ b/refs.c @@ -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'",