/[Apache-SVN]/jakarta/commons/proper/daemon/trunk/src/native/unix/native/jsvc-unix.c
ViewVC logotype

Diff of /jakarta/commons/proper/daemon/trunk/src/native/unix/native/jsvc-unix.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- jakarta/commons/proper/daemon/trunk/src/native/unix/native/jsvc-unix.c	2005/05/09 15:55:06	169334
+++ jakarta/commons/proper/daemon/trunk/src/native/unix/native/jsvc-unix.c	2005/05/09 16:00:47	169335
@@ -90,8 +90,11 @@ static int set_user_group(char *user, in
             return(-1);
         }
         if (initgroups(user, gid)!=0) {
-            log_error("Cannot set supplement group list for user '%s'",user);
-            return(-1);
+            if (getuid()!= uid) {
+                log_error("Cannot set supplement group list for user '%s'",user);
+                return(-1);
+            } else
+                log_debug("Cannot set supplement group list for user '%s'",user);
         }
         if (setuid(uid)!=0) {
             log_error("Cannot set user id for user '%s'",user);

 

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26