summaryrefslogtreecommitdiffstats
path: root/games/pig
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1996-12-22 20:00:41 +0000
committerderaadt <deraadt@openbsd.org>1996-12-22 20:00:41 +0000
commit161033a1895d69b10cf98bd9617f544017634500 (patch)
tree19b4607d322bc741caf70221f4fc1db54ec298e1 /games/pig
parentremoved netbsd refs from "clean" target (diff)
downloadwireguard-openbsd-161033a1895d69b10cf98bd9617f544017634500.tar.xz
wireguard-openbsd-161033a1895d69b10cf98bd9617f544017634500.zip
proper gid revoke
Diffstat (limited to 'games/pig')
-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 0cffcd30775..27215f008b4 100644
--- a/games/pig/pig.c
+++ b/games/pig/pig.c
@@ -66,6 +66,8 @@ main(argc, argv)
int ch;
char buf[1024];
+ /* revoke */
+ setegid(getgid());
setgid(getgid());
while ((ch = getopt(argc, argv, "")) != EOF)