Windows: define S_ISUID properly
commitd25f211be7d5f461a2f7f85221a5fc41df5291ed
authorJohannes Sixt <j6t@kdbg.org>
Wed, 21 Sep 2011 06:33:28 +0000 (21 08:33 +0200)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Tue, 13 Mar 2012 05:44:37 +0000 (13 00:44 -0500)
tree070f519a262bf615c4ac98e87ec64cba0a8b61f1
parent3e4f9a0db113de2a3f9db4abb786345e50dab41f
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 <j6t@kdbg.org>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
compat/mingw.h