Skip to content

Commit 54f4b01

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 #958 Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 3dd1b15 commit 54f4b01

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
@@ -2680,12 +2680,6 @@ int readlink(const char *path, char *buf, size_t bufsiz)
26802680
char tmpbuf[MAX_LONG_PATH];
26812681
int len;
26822682

2683-
/* fail if symlinks are disabled */
2684-
if (!has_symlinks) {
2685-
errno = ENOSYS;
2686-
return -1;
2687-
}
2688-
26892683
if (xutftowcs_long_path(wpath, path) < 0)
26902684
return -1;
26912685

0 commit comments

Comments
 (0)