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:
@@ -159,6 +159,8 @@ char wtmpf[] = "/etc/wtmp";
|
|||||||
# ifdef STREAMSPTY
|
# ifdef STREAMSPTY
|
||||||
static int ttyfd = -1;
|
static int ttyfd = -1;
|
||||||
int really_stream = 0;
|
int really_stream = 0;
|
||||||
|
# else
|
||||||
|
#define really_stream 0
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
const char *new_login = _PATH_LOGIN;
|
const char *new_login = _PATH_LOGIN;
|
||||||
@@ -1008,8 +1010,10 @@ int cleanopen(char *line)
|
|||||||
|
|
||||||
int login_tty(int t)
|
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 defined(TIOCSCTTY) && !defined(__hpux)
|
||||||
if (ioctl(t, TIOCSCTTY, (char *)0) < 0)
|
if (ioctl(t, TIOCSCTTY, (char *)0) < 0 && !really_stream)
|
||||||
fatalperror(net, "ioctl(sctty)");
|
fatalperror(net, "ioctl(sctty)");
|
||||||
# ifdef _CRAY
|
# ifdef _CRAY
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user