aboutsummaryrefslogtreecommitdiff
path: root/coreutils/ls.c
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2021-02-12 14:02:28 +0000
committerRon Yorston <rmy@pobox.com>2021-02-12 14:02:28 +0000
commite86a3ddd8b60eb0720874f5b9679446d12a1ac41 (patch)
treef35332dccaec68bfd182f705dcec0b2297d3a578 /coreutils/ls.c
parent90f35327c2f31b7e4d938bf4d54e5526e53daee0 (diff)
downloadbusybox-w32-e86a3ddd8b60eb0720874f5b9679446d12a1ac41.tar.gz
busybox-w32-e86a3ddd8b60eb0720874f5b9679446d12a1ac41.tar.bz2
busybox-w32-e86a3ddd8b60eb0720874f5b9679446d12a1ac41.zip
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.
Diffstat (limited to 'coreutils/ls.c')
-rw-r--r--coreutils/ls.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/coreutils/ls.c b/coreutils/ls.c
index e891a67ce..67f6c8c56 100644
--- a/coreutils/ls.c
+++ b/coreutils/ls.c
@@ -495,11 +495,9 @@ static NOINLINE unsigned display_single(const struct dnode *dn)
495 /* Do readlink early, so that if it fails, error message 495 /* Do readlink early, so that if it fails, error message
496 * does not appear *inside* the "ls -l" line */ 496 * does not appear *inside* the "ls -l" line */
497 lpath = NULL; 497 lpath = NULL;
498#if ENABLE_PLATFORM_POSIX || ENABLE_FEATURE_READLINK2
499 if (opt & OPT_l) 498 if (opt & OPT_l)
500 if (S_ISLNK(dn->dn_mode)) 499 if (S_ISLNK(dn->dn_mode))
501 lpath = xmalloc_readlink_or_warn(dn->fullname); 500 lpath = xmalloc_readlink_or_warn(dn->fullname);
502#endif
503 501
504 if (opt & OPT_i) /* show inode# */ 502 if (opt & OPT_i) /* show inode# */
505#if !ENABLE_FEATURE_EXTRA_FILE_DATA 503#if !ENABLE_FEATURE_EXTRA_FILE_DATA