mirror of
https://github.com/git/git.git
synced 2026-01-19 07:04:49 +00:00
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 <johannes.schindelin@gmx.de>
This commit is contained in:
committed by
Jameson Miller
parent
3a9a31be22
commit
190b38fb89
@@ -2680,12 +2680,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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user