This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
dumb bug in User::pwent.pm
authorTom Christiansen <tchrist@mox.perl.com>
Fri, 20 Dec 1996 11:45:37 +0000 (04:45 -0700)
committerChip Salzenberg <chip@atlantic.net>
Mon, 23 Dec 1996 00:58:58 +0000 (12:58 +1200)
You need to apply s/getpwgid/getpwuid/g on that file. Sorry 'bout that.
Cut and paste strikes again.

--tom

p5p-msgid: <199612201145.EAA27860@mox.perl.com>

lib/User/pwent.pm

index fd4eb4f..9f41fe9 100644 (file)
@@ -41,8 +41,8 @@ sub populate (@) {
 
 sub getpwent ( ) { populate(CORE::getpwent()) } 
 sub getpwnam ($) { populate(CORE::getpwnam(shift)) } 
-sub getpwgid ($) { populate(CORE::getpwgid(shift)) } 
-sub getpw    ($) { ($_[0] =~ /^\d+/) ? &getpwgid : &getpwnam } 
+sub getpwuid ($) { populate(CORE::getpwuid(shift)) } 
+sub getpw    ($) { ($_[0] =~ /^\d+/) ? &getpwuid : &getpwnam } 
 
 1;
 __END__