Mercurial > illumos > illumos-gate
changeset 12685:2d7ff21e61eb
6456758 find utility does not print the name of unreadable directory.
author | Rich Burridge <rich.burridge@oracle.com> |
---|---|
date | Thu, 24 Jun 2010 12:41:50 -0700 |
parents | 397e44ebb8a9 |
children | a097917597fd |
files | usr/src/cmd/find/find.c |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/cmd/find/find.c Thu Jun 24 11:35:31 2010 -0700 +++ b/usr/src/cmd/find/find.c Thu Jun 24 12:41:50 2010 -0700 @@ -750,13 +750,11 @@ (void) fprintf(stderr, gettext("%s: cannot read dir %s: %s\n"), cmdname, name, strerror(errno)); error = 1; - return (0); - } else if (type == FTW_SLN && lflag == 0) { + } else if (type == FTW_SLN && lflag == 1) { (void) fprintf(stderr, gettext("%s: cannot follow symbolic link %s: %s\n"), cmdname, name, strerror(errno)); error = 1; - return (0); } else if (type == FTW_DL) { (void) fprintf(stderr, gettext("%s: cycle detected for %s\n"), cmdname, name);