Skip to content

Commit 5fe56d5

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 65529b6 commit 5fe56d5

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
@@ -2600,12 +2600,6 @@ int readlink(const char *path, char *buf, size_t bufsiz)
26002600
char tmpbuf[MAX_LONG_PATH];
26012601
int len;
26022602

2603-
/* fail if symlinks are disabled */
2604-
if (!has_symlinks) {
2605-
errno = ENOSYS;
2606-
return -1;
2607-
}
2608-
26092603
if (xutftowcs_long_path(wpath, path) < 0)
26102604
return -1;
26112605

0 commit comments

Comments
 (0)