summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjoris <joris@openbsd.org>2016-11-03 20:13:41 +0000
committerjoris <joris@openbsd.org>2016-11-03 20:13:41 +0000
commit01d427ddc27de3a1fa45cb6ec17a2a9eb625f301 (patch)
treef2fc97c1dc08088b346a58ccd4b02c05117b64f3
parentsmall tweak to also check canaries if F is in effect (diff)
downloadwireguard-openbsd-01d427ddc27de3a1fa45cb6ec17a2a9eb625f301.tar.xz
wireguard-openbsd-01d427ddc27de3a1fa45cb6ec17a2a9eb625f301.zip
Don't use ce_time if we are running as a server, it won't be present.
-rw-r--r--usr.bin/cvs/status.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/usr.bin/cvs/status.c b/usr.bin/cvs/status.c
index 3aa0ff44b20..52d4c37a73c 100644
--- a/usr.bin/cvs/status.c
+++ b/usr.bin/cvs/status.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: status.c,v 1.97 2016/10/18 17:11:43 joris Exp $ */
+/* $OpenBSD: status.c,v 1.98 2016/11/03 20:13:41 joris Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
* Copyright (c) 2005-2008 Xavier Santolaria <xsa@openbsd.org>
@@ -178,8 +178,12 @@ cvs_status_local(struct cvs_file *cf)
rcsnum_tostr(cf->file_ent->ce_rev, revbuf, sizeof(revbuf));
if (cf->file_ent->ce_conflict == NULL) {
- (void)strlcpy(timebuf, cf->file_ent->ce_time,
- sizeof(timebuf));
+ if (cvs_server_active == 0) {
+ (void)strlcpy(timebuf, cf->file_ent->ce_time,
+ sizeof(timebuf));
+ } else {
+ timebuf[0] = '\0';
+ }
} else {
len = strlcpy(timebuf, cf->file_ent->ce_conflict,
sizeof(timebuf));