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 git-for-windows#958

Signed-off-by: Johannes Schindelin <[email protected]>
  • Loading branch information
dscho committed Jun 14, 2018
1 parent 67a7671 commit a7a21cd
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 @@ -2643,12 +2643,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 a7a21cd

Please sign in to comment.