From 2bc0d02221944074d33eee1f274902f3f414b9a1 Mon Sep 17 00:00:00 2001 From: David Leadbeater Date: Thu, 3 May 2007 19:27:13 +0100 Subject: [PATCH] Documentation fixes for EGID/GID confusion Message-ID: <20070503172713.GA23180@sirius.otherwize.co.uk> p4raw-id: //depot/perl@31137 --- ext/POSIX/POSIX.pod | 2 +- pod/perlvar.pod | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) 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 $! -- 2.7.4