Module Name:    src
Committed By:   christos
Date:           Thu May  6 22:38:14 UTC 2010

Modified Files:
        src/external/bsd/cron/dist: cron.c

Log Message:
remember to restore the original timezone.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/bsd/cron/dist/cron.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/bsd/cron/dist/cron.c
diff -u src/external/bsd/cron/dist/cron.c:1.3 src/external/bsd/cron/dist/cron.c:1.4
--- src/external/bsd/cron/dist/cron.c:1.3	Thu May  6 17:50:16 2010
+++ src/external/bsd/cron/dist/cron.c	Thu May  6 18:38:14 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: cron.c,v 1.3 2010/05/06 21:50:16 christos Exp $	*/
+/*	$NetBSD: cron.c,v 1.4 2010/05/06 22:38:14 christos Exp $	*/
 
 /* Copyright 1988,1990,1993,1994 by Paul Vixie
  * All rights reserved
@@ -25,7 +25,7 @@
 #if 0
 static char rcsid[] = "Id: cron.c,v 1.12 2004/01/23 18:56:42 vixie Exp";
 #else
-__RCSID("$NetBSD: cron.c,v 1.3 2010/05/06 21:50:16 christos Exp $");
+__RCSID("$NetBSD: cron.c,v 1.4 2010/05/06 22:38:14 christos Exp $");
 #endif
 #endif
 
@@ -324,6 +324,10 @@
 			}
 		}
 	}
+	if (orig_tz != NULL)
+		setenv("TZ", orig_tz, 1);
+	else
+		unsetenv("TZ");
 }
 
 /*

Reply via email to