Print this page
4337 eliminate /etc/TIMEZONE

*** 17,26 **** --- 17,29 ---- * 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,925 **** FILE *tzfp; extern FILE *fopen(); int i; extern int fclose(), strncmp(); ! if ( (tzfp = fopen("/etc/TIMEZONE","r")) == (FILE *)NULL ) return; while ( (bp = fgets(buf,LINELEN,tzfp)) != (char *)NULL ) { while ( isspace(*bp) ) ++bp; if ( strncmp(bp, "TZ=", 3) == 0 ) { --- 918,928 ---- FILE *tzfp; extern FILE *fopen(); int i; extern int fclose(), strncmp(); ! 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 ) {