]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Add a new #define to disable pty_pre_init.
authorSimon Tatham <anakin@pobox.com>
Mon, 31 Aug 2015 11:51:25 +0000 (12:51 +0100)
committerSimon Tatham <anakin@pobox.com>
Mon, 31 Aug 2015 11:51:25 +0000 (12:51 +0100)
commit1ce27010dd060508f349aa25a57f18f61edc0c7b
treed1b635be3096d3409ea73f2fe003cc47ef3b5dd8
parente5b266a681f501294ddc56788fdf18866937db8f
Add a new #define to disable pty_pre_init.

OS X dislikes us calling the setuid or setgid syscalls when not
privileged, even if we try to set ourselves to the _same_ uid/gid.
Since I don't anticipate this code needing to run setuid on OS X, and
since I do anticipate wanting to handle multiple ptys in a single
process so that pty_pre_init would be useless anyway, the simplest fix
seems to me to be just conditioning out the whole of pty_pre_init
completely.
unix/uxpty.c