From 889366055d0f248e4bf3c3e188bb9e81232e0c35 Mon Sep 17 00:00:00 2001 From: Jean-Francois Brousseau Date: Fri, 27 Aug 2004 15:43:16 +0000 Subject: Unbreak when running into files with an inode of 0 --- usr.bin/cvs/file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/cvs/file.c') diff --git a/usr.bin/cvs/file.c b/usr.bin/cvs/file.c index adfc08d3207..916bc423ab6 100644 --- a/usr.bin/cvs/file.c +++ b/usr.bin/cvs/file.c @@ -1,4 +1,4 @@ -/* $OpenBSD: file.c,v 1.31 2004/08/27 14:00:29 jfb Exp $ */ +/* $OpenBSD: file.c,v 1.32 2004/08/27 15:43:15 jfb Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. @@ -496,9 +496,9 @@ cvs_file_getdir(CVSFILE *cf, int flags) ep = fbuf + (size_t)ret; while (dp < ep) { ent = (struct dirent *)dp; + dp += ent->d_reclen; if (ent->d_fileno == 0) continue; - dp += ent->d_reclen; if ((flags & CF_IGNORE) && cvs_file_chkign(ent->d_name)) continue; -- cgit v1.2.3