From: mickey Date: Wed, 2 Apr 1997 05:28:30 +0000 (+0000) Subject: fix readdir a little bit X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=017ebad9714b5a8ddb32b8fc0084526c00f6081d;p=openbsd fix readdir a little bit --- 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 {