diff options
author | 2008-06-10 17:34:36 +0000 | |
---|---|---|
committer | 2008-06-10 17:34:36 +0000 | |
commit | 10e77a1ec196618ec355caf127134aa20d0e91f8 (patch) | |
tree | 2f13fd3e1d9b16e8d30402ab2165719222da252d /usr.bin/cvs/diff.c | |
parent | Fix implementation of IN6_IS_ADDR_FULL so that IPV6_ADDR is used (diff) | |
download | wireguard-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.c | 12 |
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) { |