summaryrefslogtreecommitdiff
path: root/usr/src/cmd/zlogin
diff options
context:
space:
mode:
authorJerry Jelinek <jerry.jelinek@joyent.com>2020-03-06 12:22:09 +0000
committerJerry Jelinek <jerry.jelinek@joyent.com>2020-03-06 12:22:09 +0000
commitc9d5215bf1b67592fb838367435fe20cfd079dd2 (patch)
tree0e98d0e92f52dfd2c43d36b0395e004d62f664b9 /usr/src/cmd/zlogin
parent37db1b725f2132b140356cbf6ba045af1d7dfd97 (diff)
parent7d8deab2c421c563ab11a55e623ed48109e237af (diff)
downloadillumos-joyent-c9d5215bf1b67592fb838367435fe20cfd079dd2.tar.gz
[illumos-gate merge]
commit 7d8deab2c421c563ab11a55e623ed48109e237af 12306 XPG4v2 slave pty behaviour should generally be disabled Conflicts: usr/src/uts/common/os/streamio.c
Diffstat (limited to 'usr/src/cmd/zlogin')
-rw-r--r--usr/src/cmd/zlogin/zlogin.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/usr/src/cmd/zlogin/zlogin.c b/usr/src/cmd/zlogin/zlogin.c
index f2da6a3d74..fb219918c5 100644
--- a/usr/src/cmd/zlogin/zlogin.c
+++ b/usr/src/cmd/zlogin/zlogin.c
@@ -24,7 +24,7 @@
* Copyright (c) 2014 Gary Mills
* Copyright 2015 Nexenta Systems, Inc. All rights reserved.
* Copyright 2020 Joyent, Inc.
- * Copyright 2019 OmniOS Community Edition (OmniOSce) Association.
+ * Copyright 2020 OmniOS Community Edition (OmniOSce) Association.
*/
/*
@@ -127,8 +127,6 @@ static int pollerr = 0;
static const char *pname;
static char *username;
-extern int __xpg4; /* 0 if not an xpg4/6-compiled program */
-
/*
* When forced_login is true, the user is not prompted
* for an authentication password in the target zone.
@@ -835,16 +833,8 @@ process_output(int in_fd, int out_fd)
cc = read(in_fd, ibuf, ZLOGIN_BUFSIZ);
if (cc == -1 && (errno != EINTR || dead))
return (-1);
- if (cc == 0) {
- /*
- * A return value of 0 when calling read() on a terminal
- * indicates end-of-file pre-XPG4 and no data available
- * for XPG4 and above.
- */
- if (__xpg4 == 0)
- return (-1);
- return (0);
- }
+ if (cc == 0)
+ return (-1); /* EOF */
if (cc == -1) /* The read was interrupted. */
return (0);