summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/log.c
diff options
context:
space:
mode:
authorJean-Francois Brousseau <jfb@cvs.openbsd.org>2005-02-22 16:22:11 +0000
committerJean-Francois Brousseau <jfb@cvs.openbsd.org>2005-02-22 16:22:11 +0000
commitfeab16d66407cca194431c21699347b1f833e8de (patch)
treef6c01e6b4cd2a4fa39d2d26aa375ebdc75f4341d /usr.bin/cvs/log.c
parent1fbb579162a5dea3aa45e1df760d637d89629c44 (diff)
when a log message is generated by the server and is sent to
standard error, instead redirect it to standard out with the appropriate `E' prefix to indicate an error response message
Diffstat (limited to 'usr.bin/cvs/log.c')
-rw-r--r--usr.bin/cvs/log.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/cvs/log.c b/usr.bin/cvs/log.c
index 5164dd2cabb..db91c8f94a2 100644
--- a/usr.bin/cvs/log.c
+++ b/usr.bin/cvs/log.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: log.c,v 1.10 2005/02/16 15:33:37 jfb Exp $ */
+/* $OpenBSD: log.c,v 1.11 2005/02/22 16:22:10 jfb Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -254,8 +254,10 @@ cvs_vlog(u_int level, const char *fmt, va_list vap)
if (cvs_cmdop == CVS_OP_SERVER) {
if (out == stdout)
putc('M', out);
- else
+ else {
+ out = stdout;
putc('E', out);
+ }
putc(' ', out);
}
#endif