Problem/Motivation

Trying to access array offset on value of type bool provision.inc:391

This is because of:

function provision_posix_groupname($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;
}

Specifically posix_getgrnam doesn't always return an array.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork provision-3419514

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Steven Jones created an issue. See original summary.

Steven Jones’s picture

Status: Active » Fixed

This is going to get merged etc. so marking as fixed.

  • Steven Jones committed d2017f67 on 7.x-3.x
    Issue #3419514: Fix warnings in provision_posix_groupname
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.