diff options
author | Paul Janzen <pjanzen@cvs.openbsd.org> | 1998-09-01 05:05:02 +0000 |
---|---|---|
committer | Paul Janzen <pjanzen@cvs.openbsd.org> | 1998-09-01 05:05:02 +0000 |
commit | b71308c90de1005a44413da2491439a019e721e6 (patch) | |
tree | 192f9785ec55cb3379932fdfcfc3832d4b302f8d /games | |
parent | 13d5b30532f38ddfa81be08d34d3030f63f4ee2d (diff) |
Don't let users circumvent time restrictions with TZ; jsm28@cam.ac.uk
Diffstat (limited to 'games')
-rw-r--r-- | games/dm/dm.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/games/dm/dm.c b/games/dm/dm.c index 88097060584..84f512c8fa5 100644 --- a/games/dm/dm.c +++ b/games/dm/dm.c @@ -1,3 +1,4 @@ +/* $OpenBSD: dm.c,v 1.9 1998/09/01 05:05:01 pjanzen Exp $ */ /* $NetBSD: dm.c,v 1.5 1996/02/06 22:47:20 jtc Exp $ */ /* @@ -43,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)dm.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$OpenBSD: dm.c,v 1.8 1998/07/03 23:28:21 pjanzen Exp $"; +static char rcsid[] = "$OpenBSD: dm.c,v 1.9 1998/09/01 05:05:01 pjanzen Exp $"; #endif #endif /* not lint */ @@ -56,6 +57,7 @@ static char rcsid[] = "$OpenBSD: dm.c,v 1.8 1998/07/03 23:28:21 pjanzen Exp $"; #include <nlist.h> #include <pwd.h> #include <stdio.h> +#include <stdlib.h> #include <string.h> #include <time.h> #include <unistd.h> @@ -83,6 +85,7 @@ main(argc, argv) exit(0); gametty = ttyname(0); + unsetenv("TZ"); (void)time(&now); read_config(); #ifdef LOG |