diff options
author | Ron Yorston <rmy@pobox.com> | 2019-03-06 10:05:06 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2019-03-06 10:05:06 +0000 |
commit | 5c5197df8668ba58ec7799ccc418d124a6c6a49e (patch) | |
tree | b2cf42a770934c7adba484b5abe5e5e04e76fbff /Config.in | |
parent | 8ebe81483b8759c36c9aa5015044d8e3d2c50fd5 (diff) | |
download | busybox-w32-5c5197df8668ba58ec7799ccc418d124a6c6a49e.tar.gz busybox-w32-5c5197df8668ba58ec7799ccc418d124a6c6a49e.tar.bz2 busybox-w32-5c5197df8668ba58ec7799ccc418d124a6c6a49e.zip |
win32: implement readlink(2)
Provide an implementation of readlink(2) based on code from Git
for Windows. This version only supports symbolic links, not
mount points, as the latter seem to work well enough as-is.
With this change the ls and stat applets can display the targets
of symbolic links. The readlink applet has been enabled in the
default configuration.
Diffstat (limited to 'Config.in')
-rw-r--r-- | Config.in | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -473,6 +473,16 @@ config FEATURE_IDENTIFY_OWNER | |||
473 | Try to determine if files belong to the current user. If they don't | 473 | Try to determine if files belong to the current user. If they don't |
474 | they're listed as belonging to root. | 474 | they're listed as belonging to root. |
475 | 475 | ||
476 | config FEATURE_READLINK2 | ||
477 | bool "Read the contents of symbolic links (1.1 kb)" | ||
478 | default y | ||
479 | depends on PLATFORM_MINGW32 | ||
480 | help | ||
481 | Implement the readlink(2) system call to allow applets to read | ||
482 | the contents of symbolic links. With this feature ls and stat | ||
483 | can display the target of symbolic links and it makes sense to | ||
484 | enable the readlink applet. | ||
485 | |||
476 | comment 'Build Options' | 486 | comment 'Build Options' |
477 | 487 | ||
478 | config STATIC | 488 | config STATIC |