Changeset 2759:d2650c3d63df in roaraudio


Ignore:
Timestamp:
09/23/09 00:13:55 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

change ownership and paermissions of pidfile

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/roard.c

    r2757 r2759  
    15291529   roar_vio_close(&pidfile_vio); 
    15301530  } 
     1531  if ( pwd || grp ) { 
     1532   if ( chown(pidfile, pwd ? pwd->pw_uid : -1, grp ? grp->gr_gid : -1) == -1 ) { 
     1533    ROAR_WARN("Can not change ownership of pidfile: %s: %s", pidfile, strerror(errno)); 
     1534   } 
     1535  } 
     1536  if ( chmod(pidfile, S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH) == -1 ) { 
     1537   ROAR_WARN("Can not change permissions of pidfile: %s: %s", pidfile, strerror(errno)); 
     1538  } 
    15311539 } 
    15321540#endif 
Note: See TracChangeset for help on using the changeset viewer.