summaryrefslogtreecommitdiffstats
path: root/usr.bin/cvs/commit.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/cvs/commit.c')
-rw-r--r--usr.bin/cvs/commit.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/usr.bin/cvs/commit.c b/usr.bin/cvs/commit.c
index eb7b6e2f635..0b929a28371 100644
--- a/usr.bin/cvs/commit.c
+++ b/usr.bin/cvs/commit.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: commit.c,v 1.100 2007/01/25 18:56:33 otto Exp $ */
+/* $OpenBSD: commit.c,v 1.101 2007/01/26 21:48:17 xsa Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
* Copyright (c) 2006 Xavier Santolaria <xsa@openbsd.org>
@@ -321,6 +321,13 @@ cvs_commit_local(struct cvs_file *cf)
cf->file_rcs->rf_branch = NULL;
}
+ if (cf->file_status == FILE_ADDED && cf->file_ent->ce_opts != NULL) {
+ int kflag;
+
+ kflag = rcs_kflag_get(cf->file_ent->ce_opts + 2);
+ rcs_kwexp_set(cf->file_rcs, kflag);
+ }
+
rcs_write(cf->file_rcs);
if (cf->file_status == FILE_REMOVED) {