Skip to content

Commit

Permalink
fixup! mingw: Windows Docker volumes are *not* symbolic links
Browse files Browse the repository at this point in the history
Brown paper bag, please. Please, quick.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
  • Loading branch information
dscho committed Apr 25, 2018
1 parent 918fa5c commit fcbb1fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compat/mingw.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit fcbb1fa

Please sign in to comment.