Geoffrey Young wrote:
my $uid = $s->uid;
my $gid = $s->gid;


Include yes, but how should it be coded.


is apr_uid_current equivalent to the old s->server_uid/gid?  if so, we could
open up part of APR::User.

No, it's not. It gives you the same as perl's $< and $(.


s->server_uid/gid give you the User/Group setting for that server. Therefore at the server startup, if running as 'root' and the setting is 'User nobody', you want to get this 'nobody' value, and not 'root'. $< and apr_uid_current will both give you root's uid.

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


-- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html



Reply via email to