From fcbb1fa0445aa205a0f5f1af1eaf89ac9a146313 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Wed, 25 Apr 2018 10:51:52 +0200 Subject: [PATCH] fixup! mingw: Windows Docker volumes are *not* symbolic links Brown paper bag, please. Please, quick. Signed-off-by: Johannes Schindelin --- compat/mingw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compat/mingw.c b/compat/mingw.c index f5cd708cd6..518c67646f 100644 --- a/compat/mingw.c +++ b/compat/mingw.c @@ -3566,7 +3566,7 @@ int file_attr_to_st_mode (DWORD attr, DWORD tag, const char *path) * points and look like symbolic links, but they are not. */ if (path && is_inside_windows_container() && - !readlink(path, buf, sizeof(buf) >= 0) && + readlink(path, buf, sizeof(buf) >= 0) && starts_with(buf, "/ContainerMappedDirectories/")) flag = S_IFDIR;