summaryrefslogtreecommitdiffstats
path: root/larn
diff options
context:
space:
mode:
authormrg <mrg@NetBSD.org>1996-05-21 23:19:20 +0000
committermrg <mrg@NetBSD.org>1996-05-21 23:19:20 +0000
commit2467f99a267946648e1f54c4eb4703617db3c21e (patch)
tree9ab71d4ba9e7328f8ce4779b393c4e47f9eec9de /larn
parent91b52f3e5785b8479e883066b96f52be6d0741f2 (diff)
downloadbsdgames-darwin-2467f99a267946648e1f54c4eb4703617db3c21e.tar.gz
bsdgames-darwin-2467f99a267946648e1f54c4eb4703617db3c21e.tar.zst
bsdgames-darwin-2467f99a267946648e1f54c4eb4703617db3c21e.zip
give up "games" if we have it. larn does not need it.
Diffstat (limited to 'larn')
-rw-r--r--larn/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/larn/main.c b/larn/main.c
index fcacc3cd..a17c2099 100644
--- a/larn/main.c
+++ b/larn/main.c
@@ -1,5 +1,5 @@
#ifndef lint
-static char rcsid[] = "$NetBSD: main.c,v 1.7 1995/04/24 12:24:01 cgd Exp $";
+static char rcsid[] = "$NetBSD: main.c,v 1.8 1996/05/21 23:19:20 mrg Exp $";
#endif /* not lint */
/* main.c */
@@ -48,6 +48,7 @@ main(argc,argv)
char *ptr=0,*ttype;
struct passwd *pwe;
+ setuid(getuid()); /* give up "games" if we have it */
/*
* first task is to identify the player
*/