Locale problems on Solaris

Dan Astoorian djast at cs.toronto.edu
Wed Feb 27 06:02:05 EST 2002


On Tue, 26 Feb 2002 12:49:46 EST, Ben Lindstrom writes:
> 
> 
> In --current one should just be able to put in do_setup_env() a:
> 
> 	read_environment_file(&env, &envsize, "/etc/default/init");

This may be a usable workaround, but it's the wrong solution.  Despite
appearances, /etc/default/init does NOT contain environment variables
(per se).  Aside from LANG and LC_*, it contains configuration for
/etc/init such as TZ and CMASK, which should not get folded into the
user environment.

It would be preferable to copy LANG, NLSPATH, and all variables
beginning with "LC_" into /etc/environment or $HOME/.ssh/environment.

If you want to fix it in sshd, you should do it by copying those
variables from the parent sshd process to the session, not be reading
/etc/default/init.

-- 
Dan Astoorian               People shouldn't think that it's better to have
Sysadmin, CSLab             loved and lost than never loved at all.  It's
djast at cs.toronto.edu        not, it's better to have loved and won.  All
www.cs.toronto.edu/~djast/  the other options really suck.    --Dan Redican



More information about the openssh-unix-dev mailing list