Module Name: src
Committed By: dholland
Date: Mon May 25 00:12:32 UTC 2009
Modified Files:
src/games/trek: main.c
Log Message:
Don't give special privileges to uid 13107.
To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/games/trek/main.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/games/trek/main.c
diff -u src/games/trek/main.c:1.17 src/games/trek/main.c:1.18
--- src/games/trek/main.c:1.17 Sun May 24 22:55:03 2009
+++ src/games/trek/main.c Mon May 25 00:12:32 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.17 2009/05/24 22:55:03 dholland Exp $ */
+/* $NetBSD: main.c,v 1.18 2009/05/25 00:12:32 dholland Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: main.c,v 1.17 2009/05/24 22:55:03 dholland Exp $");
+__RCSID("$NetBSD: main.c,v 1.18 2009/05/25 00:12:32 dholland Exp $");
#endif
#endif /* not lint */
@@ -56,8 +56,6 @@
#define PRIO 00 /* default priority */
-uid_t Mother = 51 + (51 << 8);
-
/*
** #### ##### # #### ##### #### ##### # #
** # # # # # # # # # # # #
@@ -203,20 +201,15 @@
#ifdef xTRACE
case 't': /* trace */
- if (getuid() != Mother)
- goto badflag;
Trace++;
break;
#endif
case 'p': /* set priority */
- if (getuid() != Mother)
- goto badflag;
prio = atoi(av[0] + 2);
break;
default:
- badflag:
printf("Invalid option: %s\n", av[0]);
}