Skip to content

Commit 300f346

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 5ae8a3c commit 300f346

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
@@ -2571,12 +2571,6 @@ int readlink(const char *path, char *buf, size_t bufsiz)
25712571
char tmpbuf[MAX_LONG_PATH];
25722572
int len;
25732573

2574-
/* fail if symlinks are disabled */
2575-
if (!has_symlinks) {
2576-
errno = ENOSYS;
2577-
return -1;
2578-
}
2579-
25802574
if (xutftowcs_long_path(wpath, path) < 0)
25812575
return -1;
25822576

0 commit comments

Comments
 (0)