Make the POSIX::setuid and POSIX::setgid to really call setuid()
authorGarry T. Williams <garry@zvolve.com>
Mon, 4 Sep 2000 12:09:44 +0000 (08:09 -0400)
committerJarkko Hietaniemi <jhi@iki.fi>
Wed, 1 Nov 2000 20:56:34 +0000 (20:56 +0000)
commita043a68546f5b73797216edaeee5d9ddb364c19a
tree1adac73aaa089abb5b9dffc4afb47c6994909b03
parente093bcf0cf7ac8078690b5226007992e026a34d0
Make the POSIX::setuid and POSIX::setgid to really call setuid()
and setgid() because they were just changing $< and $( which means
only changing the real uid/gid, as opposed to changing both
real and effective ids.  (The alternative way could have been
in POSIX.pm to change $> and $), too, but making a direct call
to the C API feels cleaner.)  Fixes the bug

Subject: [ID 20000904.005] POSIX::setuid() Doesn't Call setuid()
Message-Id: <200009041609.e84G9iN12155@ifr.inside.zvolve.net>

p4raw-id: //depot/perl@7521
ext/POSIX/POSIX.pm
ext/POSIX/POSIX.pod
ext/POSIX/POSIX.xs
ext/POSIX/typemap
pod/perlvar.pod