Skip to content

Commit

Permalink
mingw: make readlink() independent of core.symlinks
Browse files Browse the repository at this point in the history
Regardless whether we think we are able to create symbolic links, we
should always read them.

This fixes #958

Signed-off-by: Johannes Schindelin <[email protected]>
  • Loading branch information
dscho authored and Git for Windows Build Agent committed Nov 18, 2016
1 parent 650060a commit e06393a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions compat/mingw.c
Original file line number Diff line number Diff line change
Expand Up @@ -2571,12 +2571,6 @@ int readlink(const char *path, char *buf, size_t bufsiz)
char tmpbuf[MAX_LONG_PATH];
int len;

/* fail if symlinks are disabled */
if (!has_symlinks) {
errno = ENOSYS;
return -1;
}

if (xutftowcs_long_path(wpath, path) < 0)
return -1;

Expand Down

0 comments on commit e06393a

Please sign in to comment.