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 29, 2016
1 parent 0a2a9c4 commit bb9eb01
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 @@ -2634,12 +2634,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 bb9eb01

Please sign in to comment.