diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-04-11 19:59:08 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-04-11 19:59:08 +0000 |
commit | a8a02c3665de209f4c02c3f4e0e382eaf75ac327 (patch) | |
tree | a1a7c98291634768dacf9cb4777b642832b61974 /usr.bin/script | |
parent | 8223a5ee06b199adfe42ffb2f13abfb8cdb36ab6 (diff) |
use STDERR_FILENO; ok cloder
Diffstat (limited to 'usr.bin/script')
-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) |