summaryrefslogtreecommitdiff
path: root/usr/src/libpiny/lib/Piny/Environment.pm
diff options
context:
space:
mode:
authorJulian Blake Kongslie <jblake@omgwallhack.org>2010-03-18 13:46:33 -0700
committerJulian Blake Kongslie <jblake@omgwallhack.org>2010-03-18 13:46:33 -0700
commit805db01a4b6e969fd416def17fd0ae4fb418af4c (patch)
treea9b9cbd74b86f32799661cb0610f8a8016e3062c /usr/src/libpiny/lib/Piny/Environment.pm
parente448007d21a2fd89ef42085bc29beb2883eb35ff (diff)
downloadpiny-code-805db01a4b6e969fd416def17fd0ae4fb418af4c.tar.gz
piny-code-805db01a4b6e969fd416def17fd0ae4fb418af4c.zip
Fix bug in username detection in libpiny.
Diffstat (limited to 'usr/src/libpiny/lib/Piny/Environment.pm')
-rw-r--r--usr/src/libpiny/lib/Piny/Environment.pm2
1 files changed, 1 insertions, 1 deletions
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 => $< );
};