Skip to content

Commit 35ee87e

Browse files
dschoGit for Windows Build Agent
authored and
Git for Windows Build Agent
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 28ff063 commit 35ee87e

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
@@ -2637,12 +2637,6 @@ int readlink(const char *path, char *buf, size_t bufsiz)
26372637
char tmpbuf[MAX_LONG_PATH];
26382638
int len;
26392639

2640-
/* fail if symlinks are disabled */
2641-
if (!has_symlinks) {
2642-
errno = ENOSYS;
2643-
return -1;
2644-
}
2645-
26462640
if (xutftowcs_long_path(wpath, path) < 0)
26472641
return -1;
26482642

0 commit comments

Comments
 (0)