summaryrefslogtreecommitdiffstats
path: root/usr.bin/cvs/file.c
diff options
context:
space:
mode:
authorjoris <joris@openbsd.org>2005-08-19 13:36:50 +0000
committerjoris <joris@openbsd.org>2005-08-19 13:36:50 +0000
commitb9093e11d747aa55142f0610678f85ee3cfea647 (patch)
tree0b4cf5608493313278cd4e5c92943b8ed87e9940 /usr.bin/cvs/file.c
parentknight industries two thousand; (diff)
downloadwireguard-openbsd-b9093e11d747aa55142f0610678f85ee3cfea647.tar.xz
wireguard-openbsd-b9093e11d747aa55142f0610678f85ee3cfea647.zip
do not close the entries file until all files depending on it have
been passed to the callback. ok xsa@
Diffstat (limited to 'usr.bin/cvs/file.c')
-rw-r--r--usr.bin/cvs/file.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/cvs/file.c b/usr.bin/cvs/file.c
index 5774b78515b..bacda35e99c 100644
--- a/usr.bin/cvs/file.c
+++ b/usr.bin/cvs/file.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: file.c,v 1.115 2005/08/17 16:23:19 joris Exp $ */
+/* $OpenBSD: file.c,v 1.116 2005/08/19 13:36:50 joris Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -604,11 +604,6 @@ cvs_file_loadinfo(char *path, int flags, int (*cb)(CVSFILE *, void *),
((cvs_error = cb(base, arg)) != CVS_EX_OK))
goto fail;
- if (entf != NULL) {
- cvs_ent_close(entf);
- entf = NULL;
- }
-
/*
* If we have a normal file, pass it as well.
*/
@@ -626,6 +621,11 @@ cvs_file_loadinfo(char *path, int flags, int (*cb)(CVSFILE *, void *),
}
}
+ if (entf != NULL) {
+ cvs_ent_close(entf);
+ entf = NULL;
+ }
+
return (base);
fail: