summaryrefslogtreecommitdiffstats
path: root/usr.bin/patch/util.c
diff options
context:
space:
mode:
authorray <ray@openbsd.org>2010-07-24 01:10:12 +0000
committerray <ray@openbsd.org>2010-07-24 01:10:12 +0000
commitf081e678dadf51a99c6a6ddfc6379af4890e29a6 (patch)
tree8a154ac915fcf3d607804afbea72105ced13c534 /usr.bin/patch/util.c
parentInclude pid file name in error message for a failed kill(). Prompted by (diff)
downloadwireguard-openbsd-f081e678dadf51a99c6a6ddfc6379af4890e29a6.tar.xz
wireguard-openbsd-f081e678dadf51a99c6a6ddfc6379af4890e29a6.zip
Send normal output to stdout instead of everything to stderr. This
is currently done in the latest versions of GNU patch. Please watch out for output appearing out-of-order. Discussed with millert and deraadt. OK deraadt
Diffstat (limited to 'usr.bin/patch/util.c')
-rw-r--r--usr.bin/patch/util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/patch/util.c b/usr.bin/patch/util.c
index b27b57b62c3..45d0d7d7d6c 100644
--- a/usr.bin/patch/util.c
+++ b/usr.bin/patch/util.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: util.c,v 1.34 2010/01/08 13:27:59 oga Exp $ */
+/* $OpenBSD: util.c,v 1.35 2010/07/24 01:10:12 ray Exp $ */
/*
* patch - a program to apply diffs to original files
@@ -200,9 +200,9 @@ say(const char *fmt, ...)
va_list ap;
va_start(ap, fmt);
- vfprintf(stderr, fmt, ap);
+ vfprintf(stdout, fmt, ap);
va_end(ap);
- fflush(stderr);
+ fflush(stdout);
}
/*