From 87d368dc8d0a9351fb79b7aecb62b8c3538d8346 Mon Sep 17 00:00:00 2001 From: tobias Date: Thu, 10 Jan 2008 09:54:04 +0000 Subject: Our keyword expansion had a big flaw, due to this construction: if (!(mode & RCS_KWEXP_NONE)) RCS_KWEXP_NONE is defined to 0, so expansion happened always. Left shifted all RCS_KWEXP defines and looked carefully at hard-coded values throughout the code. --- usr.bin/cvs/commit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/cvs/commit.c') diff --git a/usr.bin/cvs/commit.c b/usr.bin/cvs/commit.c index b388e5bdbb9..d4e149deabc 100644 --- a/usr.bin/cvs/commit.c +++ b/usr.bin/cvs/commit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: commit.c,v 1.116 2008/01/10 09:37:26 tobias Exp $ */ +/* $OpenBSD: commit.c,v 1.117 2008/01/10 09:54:04 tobias Exp $ */ /* * Copyright (c) 2006 Joris Vink * Copyright (c) 2006 Xavier Santolaria @@ -521,7 +521,7 @@ commit_diff(struct cvs_file *cf, RCSNUM *rev, int reverse) } (void)xasprintf(&p2, "%s/diff2.XXXXXXXXXX", cvs_tmpdir); - rcs_rev_write_stmp(cf->file_rcs, rev, p2, 0); + rcs_rev_write_stmp(cf->file_rcs, rev, p2, RCS_KWEXP_NONE); if ((b2 = cvs_buf_alloc(128, BUF_AUTOEXT)) == NULL) fatal("commit_diff: failed to create diff buf"); -- cgit v1.2.3-59-g8ed1b