Logo Search packages:      
Sourcecode: aegir-provision version File versions  Download package

provision_posix_groupname ( group  ) 

Return the valid system groupname for $group.

Returns the groupname if found, otherwise returns FALSE

Definition at line 250 of file provision.inc.

Referenced by provision_user_in_group().

  // TODO: make these singletons with static variables for caching.
  // we do this both ways, so that the function returns NULL if no such user was found.
  if (is_numeric($group)) {
    $info = posix_getgrgid($group);
    $group = $info['name'];
  else {
    $info = posix_getgrnam($group);
    $group = $info['name'];
  return $group;

Generated by  Doxygen 1.6.0   Back to index