The following reply was made to PR standards/128546; it has been noted by GNATS.
From:
dfilter@... (dfilter service)
To:
bug-followup@...
Cc:
Subject: Re: standards/128546: commit references a PR
Date: Tue, 13 Oct 2009 21:52:05 +0000 (UTC)
Author: jilles
Date: Tue Oct 13 21:51:50 2009
New Revision: 198056
URL:
http://svn.freebsd.org/changeset/base/198056
Log:
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
Modified:
head/bin/ls/ls.c
Modified: head/bin/ls/ls.c
==============================================================================
--- head/bin/ls/ls.c Tue Oct 13 21:28:51 2009 (r198055)
+++ head/bin/ls/ls.c Tue Oct 13 21:51:50 2009 (r198056)
@@ -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;
/*
_______________________________________________
svn-src-all@... mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "
svn-src-all-unsubscribe@..."
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
_______________________________________________
freebsd-standards@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-standardsTo unsubscribe, send any mail to "
freebsd-standards-unsubscribe@..."