Author: kevlo Date: Thu Dec 2 01:46:06 2010 New Revision: 216106 URL: http://svn.freebsd.org/changeset/base/216106
Log: Don't error out while searching for empty directories. Submitted by: Bakul Shah <bakul at bitblocks dot com> Modified: head/usr.bin/find/function.c Modified: head/usr.bin/find/function.c ============================================================================== --- head/usr.bin/find/function.c Thu Dec 2 01:36:00 2010 (r216105) +++ head/usr.bin/find/function.c Thu Dec 2 01:46:06 2010 (r216106) @@ -559,7 +559,7 @@ f_empty(PLAN *plan __unused, FTSENT *ent empty = 1; dir = opendir(entry->fts_accpath); if (dir == NULL) - err(1, "%s", entry->fts_accpath); + return 0; for (dp = readdir(dir); dp; dp = readdir(dir)) if (dp->d_name[0] != '.' || (dp->d_name[1] != '\0' && _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"