summaryrefslogtreecommitdiff
path: root/games/gomoku
diff options
context:
space:
mode:
Diffstat (limited to 'games/gomoku')
-rw-r--r--games/gomoku/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/games/gomoku/main.c b/games/gomoku/main.c
index 9b5bd086939..44405939b30 100644
--- a/games/gomoku/main.c
+++ b/games/gomoku/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.4 1996/12/21 21:17:51 tholo Exp $ */
+/* $OpenBSD: main.c,v 1.5 1996/12/22 20:01:16 deraadt Exp $ */
/*
* Copyright (c) 1994
* The Regents of the University of California. All rights reserved.
@@ -89,6 +89,8 @@ main(argc, argv)
"%3d %-6s"
};
+ /* revoke privs */
+ setegid(getgid());
setgid(getgid());
prog = strrchr(argv[0], '/');