Not all systems have (or need) modules ttcompat and pckt so don't flag

it as a fatal error if they don't exist.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@131 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Björn Groenvall
1995-10-02 09:11:02 +00:00
parent e992686274
commit 705b49632c

View File

@@ -1132,9 +1132,13 @@ getptyslave()
fatal(net, "I_PUSH ptem");
if (ioctl(t, I_PUSH, "ldterm") < 0)
fatal(net, "I_PUSH ldterm");
if (ioctl(t, I_PUSH, "ttcompat") < 0)
/*
* Not all systems have (or need) modules ttcompat and pckt so
* don't flag it as a fatal error if they don't exist.
*/
if (ioctl(t, I_PUSH, "ttcompat") < 0 && errno != EINVAL)
fatal(net, "I_PUSH ttcompat");
if (ioctl(pty, I_PUSH, "pckt") < 0)
if (ioctl(pty, I_PUSH, "pckt") < 0 && errno != EINVAL)
fatal(net, "I_PUSH pckt");
#endif