summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/rcs.c
diff options
context:
space:
mode:
authorNiall O'Higgins <niallo@cvs.openbsd.org>2005-09-18 15:27:39 +0000
committerNiall O'Higgins <niallo@cvs.openbsd.org>2005-09-18 15:27:39 +0000
commitc546b91a9028602f706cc888a2b220b87661d43d (patch)
tree593b65b8603bb382bc75329ec5854004866df9f1 /usr.bin/cvs/rcs.c
parenta2835edc39bac23928a74d9bb762d86fb088dde3 (diff)
- ensure rcs_rev_add() and rcs_kwexp_set() set the RCS_SYNCED flag to off
properly. ok joris@
Diffstat (limited to 'usr.bin/cvs/rcs.c')
-rw-r--r--usr.bin/cvs/rcs.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/cvs/rcs.c b/usr.bin/cvs/rcs.c
index 3e98ec096c3..6be056ad721 100644
--- a/usr.bin/cvs/rcs.c
+++ b/usr.bin/cvs/rcs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcs.c,v 1.63 2005/09/18 06:19:10 joris Exp $ */
+/* $OpenBSD: rcs.c,v 1.64 2005/09/18 15:27:38 niallo Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -1385,6 +1385,8 @@ rcs_rev_add(RCSFILE *rf, RCSNUM *rev, const char *msg, time_t date)
TAILQ_INSERT_HEAD(&(rf->rf_delta), rdp, rd_list);
rf->rf_ndelta++;
+ /* not synced anymore */
+ rf->rf_flags &= ~RCS_SYNCED;
return (0);
}
@@ -1493,6 +1495,8 @@ rcs_kwexp_set(RCSFILE *file, int mode)
if (file->rf_expand != NULL)
cvs_strfree(file->rf_expand);
file->rf_expand = tmp;
+ /* not synced anymore */
+ file->rf_flags &= ~RCS_SYNCED;
return (0);
}