ls: Make -p not inhibit following symlinks.
According to the man page, when neither -H/-L nor -F/-d/-l are given, -H is implied. This agrees with POSIX, GNU ls and Solaris ls. This means that -p, although it is very similar to -F, does not prevent the implicit following of symlinks. PR: standards/128546
This commit is contained in:
parent
680db4952e
commit
5c3743e3bb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=198056
@ -399,7 +399,7 @@ main(int argc, char *argv[])
|
||||
* If not -F, -d or -l options, follow any symbolic links listed on
|
||||
* the command line.
|
||||
*/
|
||||
if (!f_longform && !f_listdir && !f_type)
|
||||
if (!f_longform && !f_listdir && (!f_type || f_slash))
|
||||
fts_options |= FTS_COMFOLLOW;
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user