freebsd-ports/games/xconq/files/patch-aj

14 lines
420 B
Text
Raw Normal View History

--- x11/xconq.c.orig Thu Nov 23 20:19:09 2000
+++ x11/xconq.c Sat Dec 30 04:06:52 2000
@@ -33,8 +33,8 @@
if (argc == -1)
cmd_error(NULL, NULL);
/* Shift to being the user that started the game. */
- games_uid = geteuid();
- setuid(getuid());
+ games_uid = getegid();
+ setgid(getgid());
init_library_path(NULL);
/* Fiddle with game module structures. */
clear_game_modules();