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 Jan 22, 2018
1 parent 3f9950a commit 740699a
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 @@ -2600,12 +2600,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 740699a

Please sign in to comment.