From ac8bf4456ad154d95f954d6e231359ff8ce13ca5 Mon Sep 17 00:00:00 2001 From: gene Date: Wed, 20 May 1998 04:35:21 +0000 Subject: [PATCH] Bugfix to be removed after the release of tcsh 6.08. From christos@tac.nyc.ny.us courtesy of Vadim Vygonets . --- shells/tcsh/patches/patch-aj | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 shells/tcsh/patches/patch-aj diff --git a/shells/tcsh/patches/patch-aj b/shells/tcsh/patches/patch-aj new file mode 100644 index 00000000000..2ae50f2a6c0 --- /dev/null +++ b/shells/tcsh/patches/patch-aj @@ -0,0 +1,22 @@ +--- sh.print.c 1996/04/26 19:20:06 3.8 ++++ sh.print.c 1997/09/20 22:47:21 +@@ -196,6 +196,7 @@ + { + register int unit; + static int interrupted = 0; ++ size_t sz; + + /* int lmode; */ + +@@ -223,7 +224,10 @@ + } + #endif + #endif +- (void) write(unit, linbuf, (size_t) (linp - linbuf)); ++ sz = (size_t) (linp - linbuf); ++ if (write(unit, linbuf, sz) != sz && !haderr) ++ stderror(ERR_SYSTEM, progname, strerror(errno)); ++ + linp = linbuf; + interrupted = 0; + }