summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/update.c
diff options
context:
space:
mode:
authorJean-Francois Brousseau <jfb@cvs.openbsd.org>2005-02-27 00:22:09 +0000
committerJean-Francois Brousseau <jfb@cvs.openbsd.org>2005-02-27 00:22:09 +0000
commitb7aef825f62a7a94ddfc3f5ec9d0861f8429a4b4 (patch)
treece6402f52828eb03a79ea8f26b45a0fd0a1965b0 /usr.bin/cvs/update.c
parent6ad71f0dcaf6b13e5d2488013f723e6f320e6190 (diff)
Many improvements to the RCS support:
- make it possible to specify creation and the file mode in rcs_open() - implicitly write the contents to disk on rcs_close() if the RCS handle has been changed - fix a bug in the output of the `expand' keyword - add functions to retrieve and modify the expansion mode - rcs_parse() shouldn't be available to the outside - empty string instead of `(null)' if there is no description ok Joris
Diffstat (limited to 'usr.bin/cvs/update.c')
-rw-r--r--usr.bin/cvs/update.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/update.c b/usr.bin/cvs/update.c
index ea89591275a..236b8a55bca 100644
--- a/usr.bin/cvs/update.c
+++ b/usr.bin/cvs/update.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: update.c,v 1.16 2005/02/22 23:31:13 jfb Exp $ */
+/* $OpenBSD: update.c,v 1.17 2005/02/27 00:22:08 jfb Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -193,7 +193,7 @@ cvs_update_file(CVSFILE *cf, void *arg)
snprintf(rcspath, sizeof(rcspath), "%s/%s/%s%s",
root->cr_dir, repo, fname, RCS_FILE_EXT);
- rf = rcs_open(rcspath, RCS_MODE_READ);
+ rf = rcs_open(rcspath, RCS_READ);
if (rf == NULL) {
cvs_ent_free(entp);
return (-1);