12057 Writing part of the string to stderr makes zlogin exit
Review Request #2473 — Created Dec. 11, 2019 and submitted
Information | |
---|---|
citrus | |
illumos-gate | |
master | |
12057 | |
f3259a8... | |
Reviewers | |
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]
-
-
usr/src/cmd/zlogin/zlogin.c (Diff revision 1) you could actually use I_LOOK to check if we have module in stream.
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 2 (+13 -2) |
-
It would be better to "anchor" to one standard, and code according to that, instead of checking a private variable.
-
usr/src/cmd/zlogin/zlogin.c (Diff revision 2) This is unnecessary (because it is not a shared library).
Instead, set the code standard (see STANDARDS(5)) + link with values-xpg4.c (or values-xpg6.c).
More or less a good example:
/usr/src/cmd/env/Makefile