Dont need to set this as the controlling PTY on steams sockets, don't

abort on failure. From Harald Barth and Ian Delahorne.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22665 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2008-03-09 21:47:53 +00:00
parent 351161faed
commit bdd75a7ca8

View File

@@ -159,6 +159,8 @@ char wtmpf[] = "/etc/wtmp";
# ifdef STREAMSPTY
static int ttyfd = -1;
int really_stream = 0;
# else
#define really_stream 0
# endif
const char *new_login = _PATH_LOGIN;
@@ -1008,8 +1010,10 @@ int cleanopen(char *line)
int login_tty(int t)
{
/* Dont need to set this as the controlling PTY on steams sockets,
* don't abort on failure. */
# if defined(TIOCSCTTY) && !defined(__hpux)
if (ioctl(t, TIOCSCTTY, (char *)0) < 0)
if (ioctl(t, TIOCSCTTY, (char *)0) < 0 && !really_stream)
fatalperror(net, "ioctl(sctty)");
# ifdef _CRAY
/*