summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjfb <jfb@openbsd.org>2004-08-27 15:43:15 +0000
committerjfb <jfb@openbsd.org>2004-08-27 15:43:15 +0000
commit524820545bd7c07432474c9120a12855cacb8fbe (patch)
treec322a7e8f09a0d71c532742b1a2d87f4fbe7d49a
parentcleanup and reset the valid requests array when allocating a new root (diff)
downloadwireguard-openbsd-524820545bd7c07432474c9120a12855cacb8fbe.tar.xz
wireguard-openbsd-524820545bd7c07432474c9120a12855cacb8fbe.zip
Unbreak when running into files with an inode of 0
-rw-r--r--usr.bin/cvs/file.c4
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;