[monkey-bubble: 64/753] minor changes. --nathan



commit 4086f144f8fbd497164ec032d2a58dd1c5dfcc27
Author: Nathan Bryant <nbryant src gnome org>
Date:   Tue Feb 3 05:24:23 1998 +0000

    minor changes. --nathan

 libgnome/gnome-score.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/libgnome/gnome-score.c b/libgnome/gnome-score.c
index 045ef7a..adbfdf3 100644
--- a/libgnome/gnome-score.c
+++ b/libgnome/gnome-score.c
@@ -6,7 +6,6 @@
 #include <config.h>
 #include <unistd.h>
 #include <sys/types.h>
-#include <sys/wait.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -211,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 (!setgid (gid) && getuid())
      {
 	g_warning ("losing saved gid implementation detected, "
 		   "get a real OS :)\n");



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