Stories
Slash Boxes
Comments

Slash Open Source Project

This discussion has been archived. No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login
Loading... please wait.
  • by pudge (6) on Friday August 15 2003, @03:17PM (#6115) Homepage
    I am adding this to runtask, in parse_slash_sites():
    -     if ( $uid != $orig_euid or $gid != $orig_egid ) {
    +     # Mac OS X likes to have signed UIDs, so e.g. user
    +     # nobody will get UID 4294967294 from the system,
    +     # but $> will be -2.  fun fun fun!  but getpwuid(-2)
    +     # will give us 4294967294, so let's get it that way. -- pudge
    +     my($c_name, $c_pass, $c_uid, $c_gid) = getpwuid($uid);
    +     if ( $uid != $c_uid || $gid != $c_gid ) {