[monkey-bubble: 70/753] Fix extraneous warning when games are not installed setgid



commit d26548833c2dac4549532e1b2e5a514e2a4e2a4c
Author: Elliot Lee <sopwith src gnome org>
Date:   Wed Feb 18 05:48:55 1998 +0000

    Fix extraneous warning when games are not installed setgid

 libgnome/gnome-score.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libgnome/gnome-score.c b/libgnome/gnome-score.c
index 8816b57..c8a163b 100644
--- a/libgnome/gnome-score.c
+++ b/libgnome/gnome-score.c
@@ -210,7 +210,7 @@ drop_perms (void)
 					 * incantation will also drop the
 					 * saved gid */
    /* see if we can set it back -- if we can, saved id wasnt dropped */
-   if (!setgid (gid))
+   if (gid != getgid() && !setgid (gid))
      {
 	if (getuid())
 	  g_warning ("losing saved gid implementation detected, "



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]