summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2018-06-18 21:46:05 +0000
committermillert <millert@openbsd.org>2018-06-18 21:46:05 +0000
commitcaad3202f29e4b575d18a22b33163397b27e5ad0 (patch)
treed2e1710da2c725ccd669b02233725e5678f723d5
parentAdd an HP LD220 pole display (diff)
downloadwireguard-openbsd-caad3202f29e4b575d18a22b33163397b27e5ad0.tar.xz
wireguard-openbsd-caad3202f29e4b575d18a22b33163397b27e5ad0.zip
Use shl_out->fd instead of STDOUT_FILENO in the call the setupterm().
Suggested by anton@
-rw-r--r--bin/ksh/var.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ksh/var.c b/bin/ksh/var.c
index 846200a469c..a4dca7541a5 100644
--- a/bin/ksh/var.c
+++ b/bin/ksh/var.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: var.c,v 1.69 2018/06/18 17:03:58 millert Exp $ */
+/* $OpenBSD: var.c,v 1.70 2018/06/18 21:46:05 millert Exp $ */
#include <sys/stat.h>
#include <sys/time.h>
@@ -1068,7 +1068,7 @@ setspec(struct tbl *vp)
int ret;
vp->flag &= ~SPECIAL;
- if (setupterm(str_val(vp), STDOUT_FILENO, &ret) == ERR)
+ if (setupterm(str_val(vp), shl_out->fd, &ret) == ERR)
del_curterm(cur_term);
vp->flag |= SPECIAL;
}