From afe6b38c8d6bc007a9b42041b0b1f5298a2d187b Mon Sep 17 00:00:00 2001 From: Johannes Sixt Date: Wed, 21 Sep 2011 08:33:28 +0200 Subject: [PATCH] Windows: define S_ISUID properly 8fb3ad76 (fast-import: prevent producing bad delta) introduced the first use of S_ISUID. Since before this commit the value was irrelevant, we had only a dummy definition in mingw.h. But beginning with this commit the macro must expand to a reasonable value. Make it so. We do not change S_ISGID from the value 0 because it is used in path.c (via FORCE_DIR_SET_GID) to set the mode on directories in a manner that is not supported on Windows, and 0 is the right value in this case. Signed-off-by: Johannes Sixt Signed-off-by: Johannes Schindelin --- compat/mingw.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compat/mingw.h b/compat/mingw.h index 90b53015bb..cdaa7ba476 100644 --- a/compat/mingw.h +++ b/compat/mingw.h @@ -22,7 +22,7 @@ typedef int socklen_t; #define S_IWOTH 0 #define S_IXOTH 0 #define S_IRWXO (S_IROTH | S_IWOTH | S_IXOTH) -#define S_ISUID 0 +#define S_ISUID 04000 #define S_ISGID 0 #define S_ISVTX 0 -- 2.11.4.GIT