summaryrefslogtreecommitdiff
path: root/usr.bin/cvs
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/cvs')
-rw-r--r--usr.bin/cvs/file.c4
-rw-r--r--usr.bin/cvs/rcs.c3
-rw-r--r--usr.bin/cvs/rcs.h3
3 files changed, 7 insertions, 3 deletions
diff --git a/usr.bin/cvs/file.c b/usr.bin/cvs/file.c
index 222dab3fee7..2901230c708 100644
--- a/usr.bin/cvs/file.c
+++ b/usr.bin/cvs/file.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: file.c,v 1.144 2006/05/28 08:49:01 joris Exp $ */
+/* $OpenBSD: file.c,v 1.145 2006/05/28 10:14:59 joris Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
@@ -630,6 +630,8 @@ cvs_file_classify(struct cvs_file *cf, int loud)
cf->file_path);
if (!strcmp(state, RCS_STATE_DEAD))
rcsdead = 1;
+
+ cf->file_rcs->rf_dead = rcsdead;
}
/*
diff --git a/usr.bin/cvs/rcs.c b/usr.bin/cvs/rcs.c
index 93c487c32b7..0efff87219f 100644
--- a/usr.bin/cvs/rcs.c
+++ b/usr.bin/cvs/rcs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcs.c,v 1.174 2006/05/27 18:04:46 joris Exp $ */
+/* $OpenBSD: rcs.c,v 1.175 2006/05/28 10:14:59 joris Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -264,6 +264,7 @@ rcs_open(const char *path, int fd, int flags, ...)
rfp->rf_flags = flags | RCS_SLOCK | RCS_SYNCED;
rfp->rf_mode = fmode;
rfp->fd = fd;
+ rfp->rf_dead = 0;
TAILQ_INIT(&(rfp->rf_delta));
TAILQ_INIT(&(rfp->rf_access));
diff --git a/usr.bin/cvs/rcs.h b/usr.bin/cvs/rcs.h
index a05961baaa2..12d0cce7d96 100644
--- a/usr.bin/cvs/rcs.h
+++ b/usr.bin/cvs/rcs.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcs.h,v 1.63 2006/05/28 01:24:28 joris Exp $ */
+/* $OpenBSD: rcs.h,v 1.64 2006/05/28 10:14:59 joris Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -194,6 +194,7 @@ struct rcs_delta {
typedef struct rcs_file {
int fd;
+ int rf_dead;
char *rf_path;
mode_t rf_mode;
u_int rf_flags;