Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/cron/dist remember to restore the original time...



details:   https://anonhg.NetBSD.org/src/rev/5768eb04b3f2
branches:  trunk
changeset: 754638:5768eb04b3f2
user:      christos <christos%NetBSD.org@localhost>
date:      Thu May 06 22:38:14 2010 +0000

description:
remember to restore the original timezone.

diffstat:

 external/bsd/cron/dist/cron.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r 40f5191be867 -r 5768eb04b3f2 external/bsd/cron/dist/cron.c
--- a/external/bsd/cron/dist/cron.c     Thu May 06 22:35:37 2010 +0000
+++ b/external/bsd/cron/dist/cron.c     Thu May 06 22:38:14 2010 +0000
@@ -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");
 }
 
 /*



Home | Main Index | Thread Index | Old Index