diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-04-02 05:28:31 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-04-02 05:28:31 +0000 |
commit | b5fabc909dac74eda8c467361475afa301e4df99 (patch) | |
tree | 02dabaced848d66cb3426c57a72ef8612e9504b2 /sys/lib/libsa | |
parent | 579598d28192ab8f80bced793613dcebc864a78e (diff) |
fix readdir a little bit
Diffstat (limited to 'sys/lib/libsa')
-rw-r--r-- | sys/lib/libsa/ufs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/lib/libsa/ufs.c b/sys/lib/libsa/ufs.c index 4c6041e5d6e..b2e67020c85 100644 --- a/sys/lib/libsa/ufs.c +++ b/sys/lib/libsa/ufs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ufs.c,v 1.10 1997/03/25 20:30:44 niklas Exp $ */ +/* $OpenBSD: ufs.c,v 1.11 1997/04/02 05:28:30 mickey Exp $ */ /* $NetBSD: ufs.c,v 1.16 1996/09/30 16:01:22 ws Exp $ */ /*- @@ -695,7 +695,7 @@ ufs_readdir(f, name) /* end of dir */ if (fp->f_seekp >= fp->f_di.di_size) { *name = '\0'; - return 0; + return -1; } do { |