fix readdir a little bit
authormickey <mickey@openbsd.org>
Wed, 2 Apr 1997 05:28:30 +0000 (05:28 +0000)
committermickey <mickey@openbsd.org>
Wed, 2 Apr 1997 05:28:30 +0000 (05:28 +0000)
sys/lib/libsa/ufs.c

index 4c6041e..b2e6702 100644 (file)
@@ -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 {