summaryrefslogtreecommitdiffstats
path: root/games/pig
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1996-12-19 22:19:48 +0000
committerderaadt <deraadt@openbsd.org>1996-12-19 22:19:48 +0000
commit893fd100f304576873608e0d8d0bdad3eec80b9e (patch)
tree7562f9b876816237c6f229b8a4eb7c79b38ad34c /games/pig
parenttoast shell escape code (diff)
downloadwireguard-openbsd-893fd100f304576873608e0d8d0bdad3eec80b9e.tar.xz
wireguard-openbsd-893fd100f304576873608e0d8d0bdad3eec80b9e.zip
setgid games, not setuid games. closes a neat set of holes
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 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 '?':