Print this page
4337 eliminate /etc/TIMEZONE
@@ -17,10 +17,13 @@
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
+ * Copyright 2014 Garrett D'Amore
+ */
+/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
@@ -915,11 +918,11 @@
FILE *tzfp;
extern FILE *fopen();
int i;
extern int fclose(), strncmp();
- if ( (tzfp = fopen("/etc/TIMEZONE","r")) == (FILE *)NULL )
+ if ( (tzfp = fopen("/etc/default/init","r")) == (FILE *)NULL )
return;
while ( (bp = fgets(buf,LINELEN,tzfp)) != (char *)NULL ) {
while ( isspace(*bp) )
++bp;
if ( strncmp(bp, "TZ=", 3) == 0 ) {