diff options
author | 2007-07-03 12:29:52 +0000 | |
---|---|---|
committer | 2007-07-03 12:29:52 +0000 | |
commit | 0d5087642ab1e440d4e16a487551cef873bd6f94 (patch) | |
tree | 5e40da42e9f0310977da8a3c20bfc98daced836a | |
parent | from ginsbach@netbsd, -r1.18: (diff) | |
download | wireguard-openbsd-0d5087642ab1e440d4e16a487551cef873bd6f94.tar.xz wireguard-openbsd-0d5087642ab1e440d4e16a487551cef873bd6f94.zip |
On the server side, in a remote setup, do not display timestamp.
OK joris@.
-rw-r--r-- | usr.bin/cvs/status.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.bin/cvs/status.c b/usr.bin/cvs/status.c index 29ab39f6ca5..c4ffdaac592 100644 --- a/usr.bin/cvs/status.c +++ b/usr.bin/cvs/status.c @@ -1,4 +1,4 @@ -/* $OpenBSD: status.c,v 1.75 2007/06/28 21:38:09 xsa Exp $ */ +/* $OpenBSD: status.c,v 1.76 2007/07/03 12:29:52 xsa Exp $ */ /* * Copyright (c) 2006 Joris Vink <joris@openbsd.org> * Copyright (c) 2005, 2006 Xavier Santolaria <xsa@openbsd.org> @@ -171,7 +171,11 @@ cvs_status_local(struct cvs_file *cf) fatal("cvs_status_local: truncation"); } - (void)xsnprintf(buf, sizeof(buf), "%s\t%s", revbuf, timebuf); + (void)strlcpy(buf, revbuf, sizeof(buf)); + if (cvs_server_active == 0) { + (void)strlcat(buf, "\t", sizeof(buf)); + (void)strlcat(buf, timebuf, sizeof(buf)); + } } cvs_printf(" Working revision:\t%s\n", buf); |