From e86a3ddd8b60eb0720874f5b9679446d12a1ac41 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Fri, 12 Feb 2021 14:02:28 +0000 Subject: win32: make readlink(2) implementation unconditional There doesn't seem to be much advantage in having readlink(2) as a configuration option. Making it unconditional reduces divergence from upstream and allows the removal of a check for ENOSYS that's been in busybox-w32 since the start. --- libbb/xreadlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libbb') diff --git a/libbb/xreadlink.c b/libbb/xreadlink.c index ca53e12d3..a18dd0748 100644 --- a/libbb/xreadlink.c +++ b/libbb/xreadlink.c @@ -64,7 +64,7 @@ char* FAST_FUNC xmalloc_follow_symlinks(const char *path) linkpath = xmalloc_readlink(buf); if (!linkpath) { /* not a symlink, or doesn't exist */ - if (errno == EINVAL || errno == ENOENT || (ENABLE_PLATFORM_MINGW32 && errno == ENOSYS)) + if (errno == EINVAL || errno == ENOENT) return buf; goto free_buf_ret_null; } -- cgit v1.2.3-55-g6feb