summaryrefslogtreecommitdiff
path: root/app/luit/sys.c
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2013-07-14 09:21:39 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2013-07-14 09:21:39 +0000
commitb4f39054fecc9c1ed59eb10c005f2af4d127baf6 (patch)
tree3938cfdc87d07bdb85148767a32a91fc29005953 /app/luit/sys.c
parent3223071b0a0eb39730fc6e4e4e2d1428fdcb0537 (diff)
Don't try to use grantpt() on OpenBSD. It causes crashes.
Problem reported by Jan Stary and Marcus Merighi, analysed by guenther@, configure.ac patch by me.
Diffstat (limited to 'app/luit/sys.c')
-rw-r--r--app/luit/sys.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/luit/sys.c b/app/luit/sys.c
index 904331bbd..ea4f8b854 100644
--- a/app/luit/sys.c
+++ b/app/luit/sys.c
@@ -336,6 +336,7 @@ allocatePty(int *pty_return, char **line_return)
int rc;
#ifdef HAVE_POSIX_OPENPT
+ #error bug
pty = posix_openpt(O_RDWR);
#else
pty = open("/dev/ptmx", O_RDWR);