Skip to content

Commit 160a260

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 3c4f225 commit 160a260

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

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

0 commit comments

Comments
 (0)