From bb9eb011a22f2c42661c0061e850060eda3c8b5b Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Wed, 16 Nov 2016 17:49:17 +0100 Subject: [PATCH] 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 https://github.com/git-for-windows/git/issues/958 Signed-off-by: Johannes Schindelin --- compat/mingw.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/compat/mingw.c b/compat/mingw.c index bbddab057715e4..59e48d6a7efcb4 100644 --- a/compat/mingw.c +++ b/compat/mingw.c @@ -2634,12 +2634,6 @@ int readlink(const char *path, char *buf, size_t bufsiz) char tmpbuf[MAX_LONG_PATH]; int len; - /* fail if symlinks are disabled */ - if (!has_symlinks) { - errno = ENOSYS; - return -1; - } - if (xutftowcs_long_path(wpath, path) < 0) return -1;