summaryrefslogtreecommitdiff
path: root/smf-init/debian/patches/init-dont-set-timezone.patch
blob: 06d05d6ba0e2bedb9217f49ba433cd4beb6ee5b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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