From: Roland McGrath Date: Tue, 10 Nov 1992 20:43:35 +0000 (+0000) Subject: Formerly dir.c.~8~ X-Git-Tag: 3.70.2~544 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d13ecbbb67104ad6d3cad121ea28ca1cff1a7259;p=thirdparty%2Fmake.git Formerly dir.c.~8~ --- diff --git a/dir.c b/dir.c index 8b03b837..977aa80e 100644 --- a/dir.c +++ b/dir.c @@ -513,7 +513,9 @@ open_dirstream (directory) struct dirstream *new; struct directory *dir = find_directory (directory); - if (dir->contents == 0) + if (dir->contents == 0 || dir->contents->files == 0) + /* DIR->contents is nil if the directory could not be stat'd. + DIR->contents->files is nil if it could not be opened. */ return 0; /* Read all the contents of the directory now. There is no benefit