Skip to content
Browse files

fts_read returning NULL and errno set is an error. ok ray@

  • Loading branch information...
1 parent 5e713d2 commit 2771f28eeab7c052157743cc2c97c3ebe1445ebb Otto Moerbeek committed with Dec 26, 2006
Showing with 3 additions and 1 deletion.
  1. +3 −1 util.c
View
4 util.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: util.c,v 1.32 2006/09/26 15:55:17 jaredy Exp $ */
+/* $OpenBSD: util.c,v 1.33 2006/11/17 02:01:29 jaredy Exp $ */
/*-
* Copyright (c) 1999 James Howard and Dag-Erling Coïdan Smørgrav
@@ -86,6 +86,8 @@ grep_tree(char **argv)
break;
}
}
+ if (errno)
+ err(2, "fts_read");
return c;
}

0 comments on commit 2771f28

Please sign in to comment.
Something went wrong with that request. Please try again.