summaryrefslogtreecommitdiffstats
path: root/trek
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2009-05-25 00:12:32 +0000
committerdholland <dholland@NetBSD.org>2009-05-25 00:12:32 +0000
commit0997413407e73fff9b887b4d550cbc8740704911 (patch)
tree5acfa93580b70c525e0e56d231a42532a7f04a8b /trek
parent38cd540410c0ac8d66ef6d800c2c9037068f5534 (diff)
downloadbsdgames-darwin-0997413407e73fff9b887b4d550cbc8740704911.tar.gz
bsdgames-darwin-0997413407e73fff9b887b4d550cbc8740704911.tar.zst
bsdgames-darwin-0997413407e73fff9b887b4d550cbc8740704911.zip
Don't give special privileges to uid 13107.
Diffstat (limited to 'trek')
-rw-r--r--trek/main.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/trek/main.c b/trek/main.c
index e95bb50a..32f5cc70 100644
--- a/trek/main.c
+++ b/trek/main.c
@@ -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 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\
#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 @@ __RCSID("$NetBSD: main.c,v 1.17 2009/05/24 22:55:03 dholland Exp $");
#define PRIO 00 /* default priority */
-uid_t Mother = 51 + (51 << 8);
-
/*
** #### ##### # #### ##### #### ##### # #
** # # # # # # # # # # # #
@@ -203,20 +201,15 @@ main(int argc, char **argv)
#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]);
}