mirror of
https://salsa.debian.org/srivasta/make-dfsg.git
synced 2024-12-26 14:00:56 +00:00
Formerly dir.c.~8~
This commit is contained in:
parent
09fe55be99
commit
d13ecbbb67
1 changed files with 3 additions and 1 deletions
4
dir.c
4
dir.c
|
@ -513,7 +513,9 @@ open_dirstream (directory)
|
||||||
struct dirstream *new;
|
struct dirstream *new;
|
||||||
struct directory *dir = find_directory (directory);
|
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;
|
return 0;
|
||||||
|
|
||||||
/* Read all the contents of the directory now. There is no benefit
|
/* Read all the contents of the directory now. There is no benefit
|
||||||
|
|
Loading…
Reference in a new issue