Changeset 2754:91826f347202 in roaraudio


Ignore:
Timestamp:
09/22/09 22:44:11 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

handle error of --setgid and no group name supplied

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/roard.c

    r2753 r2754  
    14571457#ifdef ROAR_HAVE_SETGID 
    14581458 if ( setids & R_SETGID ) { 
     1459  if ( sock_grp == NULL ) { 
     1460   ROAR_ERR("Can not set GID if no groupname is supplied"); 
     1461   return 1; 
     1462  } 
    14591463  if ( (grp = getgrnam(sock_grp)) == NULL ) { 
    14601464   ROAR_ERR("Can not get GID for group %s: %s", sock_grp, strerror(errno)); 
Note: See TracChangeset for help on using the changeset viewer.