From: David Leadbeater Date: Thu, 3 May 2007 18:27:13 +0000 (+0100) Subject: Documentation fixes for EGID/GID confusion X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2bc0d02221944074d33eee1f274902f3f414b9a1;p=p5sagit%2Fp5-mst-13.2.git Documentation fixes for EGID/GID confusion Message-ID: <20070503172713.GA23180@sirius.otherwize.co.uk> p4raw-id: //depot/perl@31137 --- diff --git a/ext/POSIX/POSIX.pod b/ext/POSIX/POSIX.pod index e99a2b1..cd42f08 100644 --- a/ext/POSIX/POSIX.pod +++ b/ext/POSIX/POSIX.pod @@ -1055,7 +1055,7 @@ see L. Sets the real group identifier and the effective group identifier for this process. Similar to assigning a value to the Perl's builtin -C<$)> variable, see L, except that the latter +C<$)> variable, see L, except that the latter will change only the real user identifier, and that the setgid() uses only a single numeric argument, as opposed to a space-separated list of numbers. diff --git a/pod/perlvar.pod b/pod/perlvar.pod index c3adfa0..f849ca9 100644 --- a/pod/perlvar.pod +++ b/pod/perlvar.pod @@ -926,7 +926,9 @@ the same as the first number. However, a value assigned to C<$(> must be a single number used to set the real gid. So the value given by C<$(> should I be assigned -back to C<$(> without being forced numeric, such as by adding zero. +back to C<$(> without being forced numeric, such as by adding zero. Note +that this is different to the effective gid (C<$)>) which does take a +list. You can change both the real gid and the effective gid at the same time by using POSIX::setgid(). Changes to $( require a check to $!