summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/User/pwent.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/User/pwent.pm b/lib/User/pwent.pm
index fd4eb4f09d..9f41fe9f39 100644
--- a/lib/User/pwent.pm
+++ b/lib/User/pwent.pm
@@ -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__