diff options
author | 2007-02-01 18:01:42 +0000 | |
---|---|---|
committer | 2007-02-01 18:01:42 +0000 | |
commit | d571282c814075405149be9c48fdabed884783a0 (patch) | |
tree | 4eee423bb254c091c592fa92e656935c5628eb94 /usr.bin | |
parent | handle errors reading .pc files in --list gracefully. (diff) | |
download | wireguard-openbsd-d571282c814075405149be9c48fdabed884783a0.tar.xz wireguard-openbsd-d571282c814075405149be9c48fdabed884783a0.zip |
When checking to see if a checked-out copy of the file is the same
as what is in the repo, expand keywords before doing the diff.
OK xsa@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/rcs/co.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/rcs/co.c b/usr.bin/rcs/co.c index fdf895bd3a2..ff4feb99ec5 100644 --- a/usr.bin/rcs/co.c +++ b/usr.bin/rcs/co.c @@ -1,4 +1,4 @@ -/* $OpenBSD: co.c,v 1.100 2006/11/10 16:31:29 millert Exp $ */ +/* $OpenBSD: co.c,v 1.101 2007/02/01 18:01:42 millert Exp $ */ /* * Copyright (c) 2005 Joris Vink <joris@openbsd.org> * All rights reserved. @@ -520,6 +520,10 @@ checkout_file_has_diffs(RCSFILE *rfp, RCSNUM *frev, const char *dst) warnx("failed to load revision"); return (D_ERROR); } + if ((bp = rcs_kwexp_buf(bp, rfp, frev)) == NULL) { + warnx("failed to expand tags"); + return (D_ERROR); + } (void)xasprintf(&tempfile, "%s/diff.XXXXXXXXXX", rcs_tmpdir); rcs_buf_write_stmp(bp, tempfile); |