From 017ebad9714b5a8ddb32b8fc0084526c00f6081d Mon Sep 17 00:00:00 2001 From: mickey Date: Wed, 2 Apr 1997 05:28:30 +0000 Subject: [PATCH] fix readdir a little bit --- sys/lib/libsa/ufs.c | 4 ++-- 1 file 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 { -- 2.20.1