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 authored and jamill committed Sep 10, 2018
1 parent e369c2d commit e2bc73a
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 @@ -2680,12 +2680,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 e2bc73a

Please sign in to comment.