diff options
author | Xavier Santolaria <xsa@cvs.openbsd.org> | 2007-07-03 12:29:53 +0000 |
---|---|---|
committer | Xavier Santolaria <xsa@cvs.openbsd.org> | 2007-07-03 12:29:53 +0000 |
commit | 0a517d4100b3c41e5336ee809374a2e7e0e7249e (patch) | |
tree | ab1a11b01bb4d2ed131127378b6983ae6809219e /usr.bin/cvs/status.c | |
parent | d719c962c037490893e8d5759faee39a0dd71542 (diff) |
On the server side, in a remote setup, do not display timestamp.
OK joris@.
Diffstat (limited to 'usr.bin/cvs/status.c')
-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); |