- Call warnx() instead of errx() if a directory is not readable when using
a recursive search. This is the expected behavior instead of aborting. PR: bin/162907 Submitted by: Jan Beich <jbeich@tormail.net> MFC after: 3 days
This commit is contained in:
parent
7b8d844d3a
commit
8202ac2d5f
@ -130,7 +130,9 @@ grep_tree(char **argv)
|
||||
case FTS_DNR:
|
||||
/* FALLTHROUGH */
|
||||
case FTS_ERR:
|
||||
errx(2, "%s: %s", p->fts_path, strerror(p->fts_errno));
|
||||
notfound = true;
|
||||
if(!sflag)
|
||||
warnx("%s: %s", p->fts_path, strerror(p->fts_errno));
|
||||
break;
|
||||
case FTS_D:
|
||||
/* FALLTHROUGH */
|
||||
|
Loading…
Reference in New Issue
Block a user