diff options
author | Roland McGrath <roland@redhat.com> | 1992-11-10 20:43:35 +0000 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 1992-11-10 20:43:35 +0000 |
commit | d13ecbbb67104ad6d3cad121ea28ca1cff1a7259 (patch) | |
tree | 062037f6df9df522ae96e5393093c1620965b963 /dir.c | |
parent | 09fe55be9921060643b9f95cef5d1e4deff02f3c (diff) | |
download | gunmake-d13ecbbb67104ad6d3cad121ea28ca1cff1a7259.tar.gz |
Formerly dir.c.~8~
Diffstat (limited to 'dir.c')
-rw-r--r-- | dir.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |