a little too enthusiastic... don't exit on unreadable directories
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sun, 26 May 1991 07:29:19 +0000 (23:29 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sun, 26 May 1991 07:29:19 +0000 (23:29 -0800)
SCCS-vsn: usr.bin/find/find.c 5.3

usr/src/usr.bin/find/find.c

index 9acc150..579d85d 100644 (file)
@@ -9,7 +9,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)find.c     5.2 (Berkeley) %G%";
+static char sccsid[] = "@(#)find.c     5.3 (Berkeley) %G%";
 #endif /* not lint */
 
 #include <sys/types.h>
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -137,7 +137,8 @@ find_execute(plan, paths)
                case FTS_DNR:
                case FTS_ERR:
                case FTS_NS:
                case FTS_DNR:
                case FTS_ERR:
                case FTS_NS:
-                       err("%s: %s", entry->fts_path, strerror(errno));
+                       (void)fprintf(stderr, "find: %s: %s\n", 
+                           entry->fts_path, strerror(errno));
                        continue;
                case FTS_SL:
                        if (entry->fts_level == FTS_ROOTLEVEL) {
                        continue;
                case FTS_SL:
                        if (entry->fts_level == FTS_ROOTLEVEL) {