From 805db01a4b6e969fd416def17fd0ae4fb418af4c Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Thu, 18 Mar 2010 13:46:33 -0700 Subject: Fix bug in username detection in libpiny. --- usr/src/libpiny/lib/Piny/Environment.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr/src/libpiny/lib/Piny/Environment.pm') diff --git a/usr/src/libpiny/lib/Piny/Environment.pm b/usr/src/libpiny/lib/Piny/Environment.pm index 4430362..586cce3 100644 --- a/usr/src/libpiny/lib/Piny/Environment.pm +++ b/usr/src/libpiny/lib/Piny/Environment.pm @@ -28,7 +28,7 @@ sub _build_user { } elsif ( defined $ENV{"UID"} ) { return Piny::User->new( uid => $ENV{"UID"} ); } elsif ( defined $ENV{"USER"} ) { - return Piny::User->new( username => $ENV{"USERNAME"} ); + return Piny::User->new( username => $ENV{"USER"} ); } else { return Piny::User->new( uid => $< ); }; -- cgit v1.2.3