(file) Return to Child.c CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Executor

Diff for /pegasus/src/Executor/Child.c between version 1.2 and 1.3

version 1.2, 2007/05/25 18:35:07 version 1.3, 2007/05/30 20:41:27
Line 36 
Line 36 
 #include <stdlib.h> #include <stdlib.h>
 #include <string.h> #include <string.h>
 #include <stdio.h> #include <stdio.h>
   #include <grp.h>
 #include "Defines.h" #include "Defines.h"
 #include "Fatal.h" #include "Fatal.h"
 #include "Path.h" #include "Path.h"
Line 56 
Line 57 
     int argc,     int argc,
     char** argv,     char** argv,
     const char* path,     const char* path,
       const char* userName,
     int uid,     int uid,
     int gid,     int gid,
     int sock)     int sock)
Line 93 
Line 95 
         Fatal(FL, "Failed to set gid to %d", gid);         Fatal(FL, "Failed to set gid to %d", gid);
     }     }
  
       if (initgroups(userName, gid) != 0)
       {
           Fatal(FL, "Failed to initialize groups for user %s", userName);
       }
   
     if (setuid(uid) != 0)     if (setuid(uid) != 0)
     {     {
         Fatal(FL, "Failed to set uid to %d", uid);         Fatal(FL, "Failed to set uid to %d", uid);


Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2