From fafd0d1b3900c6a1b6aacd63c324e280bcd994b1 Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Mon, 1 Sep 1997 11:31:56 +0000 Subject: [PATCH] Remove so-called revoke, this game not installed sguid --- games/factor/factor.c | 4 ---- games/grdc/grdc.c | 4 ---- games/number/number.c | 4 ---- 3 files changed, 12 deletions(-) diff --git a/games/factor/factor.c b/games/factor/factor.c index eeb064e43916..92f7415369a1 100644 --- a/games/factor/factor.c +++ b/games/factor/factor.c @@ -94,10 +94,6 @@ main(argc, argv) int ch; char *p, buf[100]; /* > max number of digits. */ - /* revoke privs */ - setegid(getgid()); - setgid(getgid()); - while ((ch = getopt(argc, argv, "")) != EOF) switch (ch) { case '?': diff --git a/games/grdc/grdc.c b/games/grdc/grdc.c index 6e7b0d1226dd..ebb3293b51f7 100644 --- a/games/grdc/grdc.c +++ b/games/grdc/grdc.c @@ -56,10 +56,6 @@ int n = 0; initscr(); - /* revoke privs */ - setegid(getgid()); - setgid(getgid()); - signal(SIGINT,sighndl); signal(SIGTERM,sighndl); signal(SIGHUP,sighndl); diff --git a/games/number/number.c b/games/number/number.c index d7c55bff91d0..cc7b85d11512 100644 --- a/games/number/number.c +++ b/games/number/number.c @@ -91,10 +91,6 @@ main(argc, argv) int ch, first; char line[256]; - /* revoke */ - setegid(getgid()); - setgid(getgid()); - lflag = 0; while ((ch = getopt(argc, argv, "l")) != EOF) switch (ch) {