summaryrefslogtreecommitdiffstats
path: root/usr.bin/cvs/diff.c
diff options
context:
space:
mode:
authortobias <tobias@openbsd.org>2008-06-10 17:34:36 +0000
committertobias <tobias@openbsd.org>2008-06-10 17:34:36 +0000
commit10e77a1ec196618ec355caf127134aa20d0e91f8 (patch)
tree2f13fd3e1d9b16e8d30402ab2165719222da252d /usr.bin/cvs/diff.c
parentFix implementation of IN6_IS_ADDR_FULL so that IPV6_ADDR is used (diff)
downloadwireguard-openbsd-10e77a1ec196618ec355caf127134aa20d0e91f8.tar.xz
wireguard-openbsd-10e77a1ec196618ec355caf127134aa20d0e91f8.zip
Omit "cannot find file" on server-side if client runs "diff" on an up-to-date
file, because it won't be sent to server then. ok joris
Diffstat (limited to 'usr.bin/cvs/diff.c')
-rw-r--r--usr.bin/cvs/diff.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/usr.bin/cvs/diff.c b/usr.bin/cvs/diff.c
index 92e49ea61e2..2720a881adf 100644
--- a/usr.bin/cvs/diff.c
+++ b/usr.bin/cvs/diff.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: diff.c,v 1.137 2008/05/30 11:06:17 tobias Exp $ */
+/* $OpenBSD: diff.c,v 1.138 2008/06/10 17:34:36 tobias Exp $ */
/*
* Copyright (c) 2008 Tobias Stoeckmann <tobias@openbsd.org>
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
@@ -276,8 +276,9 @@ cvs_diff_local(struct cvs_file *cf)
return;
}
if (cf->fd == -1) {
- cvs_log(LP_ERR, "cannot find %s",
- cf->file_path);
+ if (!cvs_server_active)
+ cvs_log(LP_ERR, "cannot find %s",
+ cf->file_path);
return;
}
break;
@@ -295,8 +296,9 @@ cvs_diff_local(struct cvs_file *cf)
break;
default:
if (cf->fd == -1) {
- cvs_log(LP_ERR, "cannot find %s",
- cf->file_path);
+ if (!cvs_server_active)
+ cvs_log(LP_ERR, "cannot find %s",
+ cf->file_path);
return;
}
if (cf->file_rcs == NULL) {