Changeset 1691:ecccc2a22b79 in roaraudio


Ignore:
Timestamp:
05/13/09 18:09:31 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

roard should terminate if it can't ste uid/gid on socket

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/roard.c

    r1609 r1691  
    712712   if ( grp ) { 
    713713    if ( pwd ) { 
    714      chown(server, pwd->pw_uid, grp->gr_gid); 
     714     if ( chown(server, pwd->pw_uid, grp->gr_gid) == -1 ) 
     715      return 1; 
    715716    } else { 
    716      chown(server, -1, grp->gr_gid); 
     717     if ( chown(server, -1, grp->gr_gid) == -1 ) 
     718      return 1; 
    717719    } 
    718720    if ( getuid() == 0 ) 
    719      chmod(server, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP); 
     721     if ( chmod(server, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP) == -1 ) 
     722      return 1; 
    720723   } 
    721724  } 
Note: See TracChangeset for help on using the changeset viewer.