]> git.cameronkatri.com Git - bsdgames-darwin.git/commitdiff
Don't give special privileges to uid 13107.
authordholland <dholland@NetBSD.org>
Mon, 25 May 2009 00:12:32 +0000 (00:12 +0000)
committerdholland <dholland@NetBSD.org>
Mon, 25 May 2009 00:12:32 +0000 (00:12 +0000)
trek/main.c

index e95bb50aab687b4b30b815d3fab45656be20693b..32f5cc700fd9376948207864ae3373e771ad1d88 100644 (file)
@@ -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]);
 
                }