in reply to Re: getpwnam
in thread The getpwnam function is unimplemented (in Windows)

The only place it's called is in the following subroutine:

sub map_user_group { if( ! defined( $uid ) ){ if( $user =~ /^\d+$/ ){ # User is just a number - presume it is the uid $uid = $user; } else { $uid = (getpwnam( $user ))[ 2 ]; } } if( ! defined( $gid ) ){ if( $group =~ /\d+$/ ){ # Group is just a number - presume it is the gid $gid = $group; } else { $gid = (getgrnam( $group ))[ 2 ]; } } }

Any ideas would be much appreciated!

Replies are listed 'Best First'.
Re: Re: Re: getpwnam
by derby (Abbot) on Jan 20, 2004 at 13:16 UTC
    that snippet of code sets the userid and groupid ... concepts that are foreign to a lot of windows systems. It's not so much that ActivePerl doesn't implement getpwnam (and getgrnam) but that there's no need for it on a windows platform. Exactly what is the script doing with $uid and $gid?

    -derby