summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/checkout.c
diff options
context:
space:
mode:
authorJoris Vink <joris@cvs.openbsd.org>2006-05-27 05:59:33 +0000
committerJoris Vink <joris@cvs.openbsd.org>2006-05-27 05:59:33 +0000
commit5d66c720aa8626f511e8cdc57a2af27dece2938a (patch)
tree974c8a92481ec481de50b0be92bfc951c106b011 /usr.bin/cvs/checkout.c
parent21be1db1b7c2070593e7732c1c3d20c574a7845d (diff)
correctly expand keywords when checking out files
Diffstat (limited to 'usr.bin/cvs/checkout.c')
-rw-r--r--usr.bin/cvs/checkout.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/cvs/checkout.c b/usr.bin/cvs/checkout.c
index bebfab3077b..b6d98afab33 100644
--- a/usr.bin/cvs/checkout.c
+++ b/usr.bin/cvs/checkout.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: checkout.c,v 1.54 2006/05/27 05:20:25 joris Exp $ */
+/* $OpenBSD: checkout.c,v 1.55 2006/05/27 05:59:32 joris Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
*
@@ -128,6 +128,8 @@ cvs_checkout_file(struct cvs_file *cf, RCSNUM *rnum, int flags)
return (0);
}
+ bp = rcs_kwexp_buf(bp, cf->file_rcs, rnum);
+
oflags = O_WRONLY | O_TRUNC;
if (cf->fd != -1) {
exists = 1;