Subject: bin/6073: [PATCH] dm should ignore TZ
To: None <gnats-bugs@gnats.netbsd.org>
From: Joseph Myers <jsm@octomino.demon.co.uk>
List: netbsd-bugs
Date: 08/31/1998 15:19:46
>Number: 6073
>Category: bin
>Synopsis: [PATCH] dm should ignore TZ
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people (Utility Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Aug 31 10:05:00 1998
>Last-Modified:
>Originator: Joseph Samuel Myers
>Organization:
Trinity College, University of Cambridge, UK
>Release: NetBSD-current of 1998-08-30
>Environment:
[
System: Linux octomino 2.0.35 #1 Wed Aug 12 15:54:21 UTC 1998 i586 unknown
Architecture: i586
]
>Description:
The `game' dm should ignore any timezone the user has set by means of
the environment variable TZ when determining whether games can be
played at a particular time.
>How-To-Repeat:
>Fix:
diff -ruN dm/dm.c dm+/dm.c
--- dm/dm.c Sun Jul 5 11:04:51 1998
+++ dm+/dm.c Mon Aug 31 15:12:07 1998
@@ -96,6 +96,7 @@
exit(0);
gametty = ttyname(0);
+ unsetenv("TZ");
(void)time(&now);
read_config();
#ifdef LOG
>Audit-Trail:
>Unformatted: