summaryrefslogtreecommitdiffstats
path: root/usr.bin/cvs/diff.c
diff options
context:
space:
mode:
authorjoris <joris@openbsd.org>2005-05-27 22:41:00 +0000
committerjoris <joris@openbsd.org>2005-05-27 22:41:00 +0000
commit4bd38884496a766409d91c5d396b67a76abc9e7f (patch)
tree9d47934821f83e56f139751abc70a05f91338203 /usr.bin/cvs/diff.c
parentUse rtm_fmask instead of rtm_use (diff)
downloadwireguard-openbsd-4bd38884496a766409d91c5d396b67a76abc9e7f.tar.xz
wireguard-openbsd-4bd38884496a766409d91c5d396b67a76abc9e7f.zip
if the user specified a revision to diff, stop caring if the file is
up to date.
Diffstat (limited to 'usr.bin/cvs/diff.c')
-rw-r--r--usr.bin/cvs/diff.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/diff.c b/usr.bin/cvs/diff.c
index 1deb7336b16..38464da1748 100644
--- a/usr.bin/cvs/diff.c
+++ b/usr.bin/cvs/diff.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: diff.c,v 1.36 2005/05/24 04:12:25 jfb Exp $ */
+/* $OpenBSD: diff.c,v 1.37 2005/05/27 22:41:00 joris Exp $ */
/*
* Copyright (C) Caldera International Inc. 2001-2002.
* All rights reserved.
@@ -599,7 +599,7 @@ cvs_diff_local(CVSFILE *cf, void *arg)
if (cf->cf_cvstat == CVS_FST_UNKNOWN) {
cvs_log(LP_WARN, "I know nothing about %s", diff_file);
return (0);
- } else if (cf->cf_cvstat == CVS_FST_UPTODATE)
+ } else if (cf->cf_cvstat == CVS_FST_UPTODATE && r1 == NULL)
return (0);
/* at this point, the file is modified */