OpenSolaris

Printable Version Enter a New Search
Bug ID 6561300
Synopsis zlogin error messages are not locale specific for non-native zones
State 10-Fix Delivered (Fix available in build)
Category:Subcategory utility:zones
Keywords
Responsible Engineer Stephen Lawrence
Reported Against
Duplicate Of
Introduced In solaris_nevada
Commit to Fix snv_66
Fixed In snv_66
Release Fixed solaris_nevada(snv_66) , solaris_10u5(s10u5_01) (Bug ID:2151498)
Related Bugs 6558487 , 6574267
Submit Date 23-May-2007
Last Update Date 7-June-2007
Description
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.
Work Around
N/A
Comments
N/A