Skip to content

Commit 8c78ddf

Browse files
dschoGit for Windows Build Agent
authored andcommitted
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 <johannes.schindelin@gmx.de>
1 parent bc0df4f commit 8c78ddf

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
@@ -2654,12 +2654,6 @@ int readlink(const char *path, char *buf, size_t bufsiz)
26542654
char tmpbuf[MAX_LONG_PATH];
26552655
int len;
26562656

2657-
/* fail if symlinks are disabled */
2658-
if (!has_symlinks) {
2659-
errno = ENOSYS;
2660-
return -1;
2661-
}
2662-
26632657
if (xutftowcs_long_path(wpath, path) < 0)
26642658
return -1;
26652659

0 commit comments

Comments
 (0)