~cfuhrman/log-fine/LOG-FINE-HANDLE-EMAIL

Viewing all changes in revision 277.

  • Committer: Christopher M. Fuhrman
  • Date: 2011-07-22 20:33:10 UTC
  • Revision ID: git-v1:a34c8c479c327931a4d2e2c77c969e39519931fc
When getting the group IDs, be sure to use the FIRST value returned

When getting the list of group IDs, be sure to use the FIRST value
returned as $( and $) will both return more than one value.

From the perlvar(1) man page:

       $(      The real gid of this process.  If you are on a machine that supports membership in multiple groups simultaneously, gives a space
               separated list of groups you are in.  The first number is the one returned by getgid(), and the subsequent ones by getgroups(), one of
               which may be the same as the first number.

       $)      The effective gid of this process.  If you are on a machine that supports membership in multiple groups simultaneously, gives a space
               separated list of groups you are in.  The first number is the one returned by getegid(), and the subsequent ones by getgroups(), one
               of which may be the same as the first number.

Update unit tests accordingly.

This commit addresses the following CPAN reports:

 * http://www.cpantesters.org/cpan/report/39bae440-b293-11e0-a3e4-843406199dfa
 * http://www.cpantesters.org/cpan/report/0c50e20c-b211-11e0-8bf3-b951607028a9
 * http://www.cpantesters.org/cpan/report/f30cba6e-ad92-11e0-b021-a870e3db07b5
 * http://www.cpantesters.org/cpan/report/2899311e-ad69-11e0-a3e4-76a7cce5fad6

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: