28 lines
940 B
Diff
28 lines
940 B
Diff
Description: libc is fine reading /etc/timezone
|
|
Index: smf-init/usr/src/cmd/init/init.c
|
|
===================================================================
|
|
--- smf-init.orig/usr/src/cmd/init/init.c
|
|
+++ smf-init/usr/src/cmd/init/init.c
|
|
@@ -2021,6 +2021,11 @@ init_env()
|
|
(void) umask(cmask);
|
|
continue;
|
|
}
|
|
+ if (strncmp(tokp, "TZ=",
|
|
+ sizeof ("TZ=") - 1) == 0) {
|
|
+ console(B_TRUE, "TZ value ignored.\n");
|
|
+ continue;
|
|
+ }
|
|
glob_envp[glob_envn] =
|
|
malloc((unsigned)(length + 1));
|
|
(void) strcpy(glob_envp[glob_envn], tokp);
|
|
Index: smf-init/usr/src/cmd/init/init.dfl
|
|
===================================================================
|
|
--- smf-init.orig/usr/src/cmd/init/init.dfl
|
|
+++ smf-init/usr/src/cmd/init/init.dfl
|
|
@@ -33,5 +33,4 @@
|
|
# TZ, LANG, CMASK, or any of the LC_* environment variables. value may
|
|
# be enclosed in double quotes (") or single quotes (').
|
|
#
|
|
-TZ=PST8PDT
|
|
CMASK=022
|