diff options
| author | Garrett D'Amore <garrett@damore.org> | 2014-03-15 00:19:55 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2014-03-28 15:05:18 -0700 |
| commit | 052519c2d30736afb1861979b73d5a889cf7fba8 (patch) | |
| tree | f17d0e9d3582c38be592376dda7405651fc9d0a1 /usr/src/cmd/login | |
| parent | d109324670f8a760f881a767533543131276a99a (diff) | |
| download | illumos-joyent-052519c2d30736afb1861979b73d5a889cf7fba8.tar.gz | |
4337 eliminate /etc/TIMEZONE
Reviewed by: Volker A. Brandt <vab@bb-c.de>
Reviewed by: Richard Elling <richard.elling@gmail.com>
Approved by: Dan McDonald <danmcd@omniti.com>
Diffstat (limited to 'usr/src/cmd/login')
| -rw-r--r-- | usr/src/cmd/login/login.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr/src/cmd/login/login.c b/usr/src/cmd/login/login.c index 50fa5c05b9..af665fec75 100644 --- a/usr/src/cmd/login/login.c +++ b/usr/src/cmd/login/login.c @@ -2213,7 +2213,7 @@ establish_user_environment(char **renvp) /* * There are three places to get timezone info. init.c sets - * TZ if the file /etc/TIMEZONE contains a value for TZ. + * TZ if the file /etc/default/init contains a value for TZ. * login.c looks in the file /etc/default/login for a * variable called TIMEZONE being set. If TIMEZONE has a * value, TZ is set to that value; no environment variable @@ -2221,15 +2221,15 @@ establish_user_environment(char **renvp) * work to set TZ, then the library routines will default * to using the file /usr/lib/locale/TZ/localtime. * - * There is a priority set up here. If /etc/TIMEZONE has + * There is a priority set up here. If /etc/default/init has * a value for TZ, that value remains top priority. If the * file /etc/default/login has TIMEZONE set, that has second * highest priority not overriding the value of TZ in - * /etc/TIMEZONE. The reason for this priority is that the - * file /etc/TIMEZONE is supposed to be sourced by + * /etc/default/init. The reason for this priority is that the + * file /etc/default/init is supposed to be sourced by * /etc/profile. We are doing the "sourcing" prematurely in * init.c. Additionally, a login C shell doesn't source the - * file /etc/profile thus not sourcing /etc/TIMEZONE thus not + * file /etc/profile thus not sourcing /etc/default/init thus not * allowing an adminstrator to globally set TZ for all users */ if (Def_tz != NULL) /* Is there a TZ from defaults/login? */ |
