diff options
author | Martijn Dekker | 2019-01-04 18:54:52 +0100 |
---|---|---|
committer | Denys Vlasenko | 2019-01-04 18:55:53 +0100 |
commit | f83292cfc44da5bd218c2be0602c89afed9e0959 (patch) | |
tree | 0143badc7b9cc47dc19ae460062754f4457f737d /coreutils | |
parent | 46fc3290c20a0468c02bd771a8c548c0e1b23e47 (diff) | |
download | busybox-f83292cfc44da5bd218c2be0602c89afed9e0959.zip busybox-f83292cfc44da5bd218c2be0602c89afed9e0959.tar.gz |
ls: make -i compatible with coreutils: don't follow symlink by default
Signed-off-by: Martijn Dekker <martijn@inlv.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils')
-rw-r--r-- | coreutils/ls.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/ls.c b/coreutils/ls.c index db3ddb9..b2adb0c 100644 --- a/coreutils/ls.c +++ b/coreutils/ls.c @@ -1204,8 +1204,8 @@ int ls_main(int argc UNUSED_PARAM, char **argv) nfiles = 0; do { cur = my_stat(*argv, *argv, - /* follow links on command line unless -l, -s or -F: */ - !(option_mask32 & (OPT_l|OPT_s|OPT_F)) + /* follow links on command line unless -l, -i, -s or -F: */ + !(option_mask32 & (OPT_l|OPT_i|OPT_s|OPT_F)) /* ... or if -H: */ || (option_mask32 & OPT_H) /* ... or if -L, but my_stat always follows links if -L */ |