diff options
author | Jean-Francois Brousseau <jfb@cvs.openbsd.org> | 2004-08-27 15:43:16 +0000 |
---|---|---|
committer | Jean-Francois Brousseau <jfb@cvs.openbsd.org> | 2004-08-27 15:43:16 +0000 |
commit | 889366055d0f248e4bf3c3e188bb9e81232e0c35 (patch) | |
tree | 6189dca8e067cdb3d625b2f4d225c55413d3baf9 /usr.bin/cvs/file.c | |
parent | 4fe06a725d91d6469ead7e0605f54e118d3c8c36 (diff) |
Unbreak when running into files with an inode of 0
Diffstat (limited to 'usr.bin/cvs/file.c')
-rw-r--r-- | usr.bin/cvs/file.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 <jfb@openbsd.org> * 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; |