diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1999-01-10 17:55:04 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1999-01-10 17:55:04 +0000 |
commit | 72cf5c5e2022b91fc486d3ef569034cbcbdeb2a8 (patch) | |
tree | 4298b1cf3a93f5de208765ff3c2c2c4884c7da21 /bin/ksh/io.c | |
parent | 1494c2efdc94109bcd53d3092332b170ed6b8d6d (diff) |
sync with pdksh-unstable-5.2.13.6
Diffstat (limited to 'bin/ksh/io.c')
-rw-r--r-- | bin/ksh/io.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/ksh/io.c b/bin/ksh/io.c index 93c6b1f97af..b2e98a73b3b 100644 --- a/bin/ksh/io.c +++ b/bin/ksh/io.c @@ -1,4 +1,4 @@ -/* $OpenBSD: io.c,v 1.6 1999/01/08 20:24:59 millert Exp $ */ +/* $OpenBSD: io.c,v 1.7 1999/01/10 17:55:02 millert Exp $ */ /* * shell buffered IO and formatted output @@ -299,11 +299,12 @@ savefd(fd, noclose) if (fd < FDBASE) { nfd = ksh_dupbase(fd, FDBASE); - if (nfd < 0) + if (nfd < 0) { if (errno == EBADF) return -1; else errorf("too many files open in shell"); + } if (!noclose) close(fd); } else |