diff options
author | 2005-04-11 19:59:07 +0000 | |
---|---|---|
committer | 2005-04-11 19:59:07 +0000 | |
commit | 790529545f5613ef0abf6d20f84cbde67d8f9fe6 (patch) | |
tree | 08c9d303d963808a9081dce058baa7f5e7467d8b /usr.bin/script/script.c | |
parent | open the RCS files in write mode by default to allow modifications (diff) | |
download | wireguard-openbsd-790529545f5613ef0abf6d20f84cbde67d8f9fe6.tar.xz wireguard-openbsd-790529545f5613ef0abf6d20f84cbde67d8f9fe6.zip |
use STDERR_FILENO; ok cloder
Diffstat (limited to 'usr.bin/script/script.c')
-rw-r--r-- | usr.bin/script/script.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/script/script.c b/usr.bin/script/script.c index 63db202c44d..df99958634f 100644 --- a/usr.bin/script/script.c +++ b/usr.bin/script/script.c @@ -1,4 +1,4 @@ -/* $OpenBSD: script.c,v 1.22 2004/12/19 14:15:19 millert Exp $ */ +/* $OpenBSD: script.c,v 1.23 2005/04/11 19:59:07 deraadt Exp $ */ /* $NetBSD: script.c,v 1.3 1994/12/21 08:55:43 jtc Exp $ */ /* @@ -65,7 +65,7 @@ static const char copyright[] = #if 0 static const char sccsid[] = "@(#)script.c 8.1 (Berkeley) 6/6/93"; #endif -static const char rcsid[] = "$OpenBSD: script.c,v 1.22 2004/12/19 14:15:19 millert Exp $"; +static const char rcsid[] = "$OpenBSD: script.c,v 1.23 2005/04/11 19:59:07 deraadt Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -272,7 +272,7 @@ dooutput(void) break; sigprocmask(SIG_BLOCK, &blkalrm, NULL); for (off = 0; off < cc; ) { - ssize_t n = write(1, obuf + off, cc - off); + ssize_t n = write(STDOUT_FILENO, obuf + off, cc - off); if (n == 0) break; /* skip writing */ if (n > 0) |