12057 Writing part of the string to stderr makes zlogin exit

Review Request #2473 — Created Dec. 11, 2019 and submitted — Latest diff uploaded

citrus
illumos-gate
master
12057
f3259a8...
general
12057 Writing part of the string to stderr makes zlogin exit

bloody:illumos:master% make

bloody:illumos:master% mdb -e '__xpg4/x' zlogin
zlogin`__xpg4:
zlogin`__xpg4:  1

bloody:illumos:master% pfexec ./zlogin test
[Connected to zone 'test' pts/3]
Last login: Wed Dec 11 15:16:25 2019 on pts/3
OmniOS 5.11     omnios-master-f3e2549426        December 2019
root@test:~# strconf
ttcompat
ldterm
ptem
pts
root@test:~#
root@test:~# ./zcons
.root@test:~#
root@test:~# logout

[Connection to zone 'test' pts/3 closed]

bloody:illumos:master% PRIMARY_CC=gcc4,/opt/gcc-4.4.4/bin/gcc,gnu make

bloody:illumos:master% mdb -e '__xpg4/x' zlogin
mdb: failed to read data from target: no mapping for address
0x8168800:

bloody:illumos:master% pfexec ./zlogin test
[Connected to zone 'test' pts/3]
Last login: Wed Dec 11 15:18:55 2019 on pts/3
OmniOS 5.11     omnios-master-f3e2549426        December 2019
root@test:~# strconf
ttcompat
ldterm
ptem
pts
root@test:~# ./zcons
.root@test:~#
root@test:~# logout

[Connection to zone 'test' pts/3 closed]
Loading...