=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/chpass/util.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- src/usr.bin/chpass/util.c 2003/07/01 01:01:28 1.7 +++ src/usr.bin/chpass/util.c 2008/06/19 19:16:04 1.8 @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.7 2003/07/01 01:01:28 avsm Exp $ */ +/* $OpenBSD: util.c,v 1.8 2008/06/19 19:16:04 tobias Exp $ */ /* $NetBSD: util.c,v 1.4 1995/03/26 04:55:35 glass Exp $ */ /*- @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)util.c 8.4 (Berkeley) 4/2/94"; #else -static char rcsid[] = "$OpenBSD: util.c,v 1.7 2003/07/01 01:01:28 avsm Exp $"; +static char rcsid[] = "$OpenBSD: util.c,v 1.8 2008/06/19 19:16:04 tobias Exp $"; #endif #endif /* not lint */ @@ -67,7 +67,6 @@ int atot(char *p, time_t *store) { - static struct tm *lt; struct tm tm; time_t tval; char *t; @@ -75,11 +74,6 @@ if (!*p) { *store = 0; return (0); - } - if (!lt) { - unsetenv("TZ"); - (void)time(&tval); - lt = localtime(&tval); } (void) memset(&tm, 0, sizeof(tm)); for (t = p; (t = strchr(t, ',')) != NULL; t++)