summaryrefslogtreecommitdiffstats
path: root/usr.bin/cvs/diff.c
diff options
context:
space:
mode:
authorjoris <joris@openbsd.org>2009-03-19 10:09:16 +0000
committerjoris <joris@openbsd.org>2009-03-19 10:09:16 +0000
commit33b95e3bdaf247f4faa30cc87b638b7c823f7402 (patch)
tree0332035fbe4caca470109a2b466c409744bf557e /usr.bin/cvs/diff.c
parentRemove unused code. (diff)
downloadwireguard-openbsd-33b95e3bdaf247f4faa30cc87b638b7c823f7402.tar.xz
wireguard-openbsd-33b95e3bdaf247f4faa30cc87b638b7c823f7402.zip
do not diff files server-side that are uptodate but require a patch,
as the client does not provide these files at all because they are not modified in anyway. otherwise this results in bad mojo. found by myself and sthen@
Diffstat (limited to 'usr.bin/cvs/diff.c')
-rw-r--r--usr.bin/cvs/diff.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/cvs/diff.c b/usr.bin/cvs/diff.c
index c71bd1d1f69..ab7ff86b857 100644
--- a/usr.bin/cvs/diff.c
+++ b/usr.bin/cvs/diff.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: diff.c,v 1.145 2009/02/21 14:50:53 joris Exp $ */
+/* $OpenBSD: diff.c,v 1.146 2009/03/19 10:09:16 joris Exp $ */
/*
* Copyright (c) 2008 Tobias Stoeckmann <tobias@openbsd.org>
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
@@ -324,6 +324,9 @@ cvs_diff_local(struct cvs_file *cf)
date1 == -1 && date2 == -1)
return;
+ if (cf->file_status == FILE_PATCH)
+ return;
+
if (cf->file_rcs != NULL && cf->file_rcs->rf_head == NULL) {
cvs_log(LP_ERR, "no head revision in RCS file for %s\n",
cf->file_path);