summaryrefslogtreecommitdiffstats
path: root/usr.bin/cvs/diff.c
diff options
context:
space:
mode:
authorjoris <joris@openbsd.org>2009-04-02 09:09:40 +0000
committerjoris <joris@openbsd.org>2009-04-02 09:09:40 +0000
commit286ade6fbd717a455ffe9cef65a6a747188bbacf (patch)
tree508d7dbabd7353ec9a23b78ac696439b85d4ebd8 /usr.bin/cvs/diff.c
parentGive some hints about debugging live kernels with gdb(1). (diff)
downloadwireguard-openbsd-286ade6fbd717a455ffe9cef65a6a747188bbacf.tar.xz
wireguard-openbsd-286ade6fbd717a455ffe9cef65a6a747188bbacf.zip
make sure diffing -rTAG -rTAG works even if files are uptodate
commited with opencvs, with permission by deraadt@
Diffstat (limited to 'usr.bin/cvs/diff.c')
-rw-r--r--usr.bin/cvs/diff.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/cvs/diff.c b/usr.bin/cvs/diff.c
index 44aacf04af9..43e298117ef 100644
--- a/usr.bin/cvs/diff.c
+++ b/usr.bin/cvs/diff.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: diff.c,v 1.147 2009/03/23 07:28:05 joris Exp $ */
+/* $OpenBSD: diff.c,v 1.148 2009/04/02 09:09:40 joris Exp $ */
/*
* Copyright (c) 2008 Tobias Stoeckmann <tobias@openbsd.org>
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
@@ -414,6 +414,7 @@ cvs_diff_local(struct cvs_file *cf)
switch (cvs_cmdop) {
case CVS_OP_DIFF:
if (cf->file_status == FILE_UPTODATE && diff_rev1 != NULL &&
+ diff_rev2 == NULL &&
rcsnum_cmp(diff_rev1, cf->file_rcsrev, 0) == 0)
goto cleanup;
break;