Skip to content

Commit b772a4d

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 711c290 commit b772a4d

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
@@ -2630,12 +2630,6 @@ int readlink(const char *path, char *buf, size_t bufsiz)
26302630
char tmpbuf[MAX_LONG_PATH];
26312631
int len;
26322632

2633-
/* fail if symlinks are disabled */
2634-
if (!has_symlinks) {
2635-
errno = ENOSYS;
2636-
return -1;
2637-
}
2638-
26392633
if (xutftowcs_long_path(wpath, path) < 0)
26402634
return -1;
26412635

0 commit comments

Comments
 (0)