Skip to content

Commit 2d86e98

Browse files
committed
mingw: make readlink() independent of core.symlinks
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]>
1 parent 7bfe5b1 commit 2d86e98

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

compat/mingw.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2643,12 +2643,6 @@ int readlink(const char *path, char *buf, size_t bufsiz)
26432643
char tmpbuf[MAX_LONG_PATH];
26442644
int len;
26452645

2646-
/* fail if symlinks are disabled */
2647-
if (!has_symlinks) {
2648-
errno = ENOSYS;
2649-
return -1;
2650-
}
2651-
26522646
if (xutftowcs_long_path(wpath, path) < 0)
26532647
return -1;
26542648

0 commit comments

Comments
 (0)