summaryrefslogtreecommitdiff
path: root/compat/cygwin.h
diff options
context:
space:
mode:
authorPat Thoyts <patthoyts@users.sourceforge.net>2010-03-17 15:17:34 +0000
committerPat Thoyts <patthoyts@users.sourceforge.net>2010-10-01 23:08:44 +0100
commit9b9784cab9bba925ab35c7aa8d4e5967a4268093 (patch)
tree1ae137409181e94bb8742e1a4fec9c1e9f361e20 /compat/cygwin.h
parent4091bfc9616d5ac0371bb2ed80558f4a8f4d12f5 (diff)
downloadgit-9b9784cab9bba925ab35c7aa8d4e5967a4268093.tar.gz
MinGW: fix stat() and lstat() implementations for handling symlinks
In msysGit the stat() function has been implemented using mingw_lstat which sets the st_mode member to S_IFLNK when a symbolic links is found. This causes the is_executable function to return when git attempts to build a list of available commands in the help code and we end up missing most git commands. (msysGit issue #445) This patch modifies the implementation so that lstat() will return the link flag but if we are called as stat() we read the size of the target and set the mode to that of a regular file. Includes squashed fix st_mode for symlink dirs Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net> Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com>
Diffstat (limited to 'compat/cygwin.h')
0 files changed, 0 insertions, 0 deletions