diff options
-rw-r--r-- | libbb/xreadlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/xreadlink.c b/libbb/xreadlink.c index faa0e1646..1a012456f 100644 --- a/libbb/xreadlink.c +++ b/libbb/xreadlink.c | |||
@@ -59,7 +59,7 @@ char* FAST_FUNC xmalloc_follow_symlinks(const char *path) | |||
59 | linkpath = xmalloc_readlink(buf); | 59 | linkpath = xmalloc_readlink(buf); |
60 | if (!linkpath) { | 60 | if (!linkpath) { |
61 | /* not a symlink, or doesn't exist */ | 61 | /* not a symlink, or doesn't exist */ |
62 | if (errno == EINVAL || errno == ENOENT) | 62 | if (errno == EINVAL || errno == ENOENT || (ENABLE_PLATFORM_MINGW32 && errno == ENOSYS)) |
63 | return buf; | 63 | return buf; |
64 | goto free_buf_ret_null; | 64 | goto free_buf_ret_null; |
65 | } | 65 | } |