This bug was found while evaluating 6558487.
from 6558487:
As well as not calling getpwnam(), zlogin should not call getttext() without first
pointing libc at the appropriate locale message files.
This is very easily reproduced by:
- creating/booting an lx zone
- creating a user in the zone with a non-existant home directory
- spoofing up a bogus locale by modifying
/usr/lib/locale/C/LC_MESSAGES/SUNW_OST_OSCMD.po
using msgfmt(1) to generate a new SUNW_OST_OSCMD.mo.
- Changing locale to POSIX
- doing:
# zlogin -l <user> <zone> <cmd>
# zlogin: Could not chdir to home directory /home/nodir: No such file or directory
It can be seen that the error message is not locale specific.