GNOME Bugzilla – Bug 694494
Make use of posix_openpt() to open a pseudo-terminal device
Last modified: 2013-02-23 21:57:34 UTC
Created attachment 237228 [details] [review] Make use of posix_openpt() The attached patch modifies the VTE PTY code to make use of posix_openpt() to open a pseudo-terminal device. This is supported by POSIX.1-2001 compliant Operating Systems and some OS's like OpenBSD do not have the /dev/ptmx device so this is the only proper way of accessing a pseudo-terminal.
Review of attachment 237228 [details] [review]: With that fixed, ok to commit to vte-0-34 branch. ::: src/pty.c @@ +813,3 @@ { int fd, flags, rv; +#ifdef HAVE_POSIX_OPENPT #if defined(...)
Can you clarify your comment? The diff modifies the code as it should be already.
You're using #ifdef ... #elif defined(...); that should be #if defined(...) ... #elif defined(...) instead.
Created attachment 237258 [details] [review] Make use of posix_openpt()
Here is an updated diff. I only did so in that manner as code elsewhere within the same file uses #ifdef .. #elif defined(..) #else.
Fixed on 0-34 and next.