summaryrefslogtreecommitdiff
path: root/games/pig/pig.c
diff options
context:
space:
mode:
Diffstat (limited to 'games/pig/pig.c')
-rw-r--r--games/pig/pig.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/games/pig/pig.c b/games/pig/pig.c
index b5bec38566d..0cffcd30775 100644
--- a/games/pig/pig.c
+++ b/games/pig/pig.c
@@ -66,6 +66,8 @@ main(argc, argv)
int ch;
char buf[1024];
+ setgid(getgid());
+
while ((ch = getopt(argc, argv, "")) != EOF)
switch(ch) {
case '?':