Skip to content

Commit 44cb29d

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 c6e6282 commit 44cb29d

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
@@ -2634,12 +2634,6 @@ int readlink(const char *path, char *buf, size_t bufsiz)
26342634
char tmpbuf[MAX_LONG_PATH];
26352635
int len;
26362636

2637-
/* fail if symlinks are disabled */
2638-
if (!has_symlinks) {
2639-
errno = ENOSYS;
2640-
return -1;
2641-
}
2642-
26432637
if (xutftowcs_long_path(wpath, path) < 0)
26442638
return -1;
26452639

0 commit comments

Comments
 (0)