summaryrefslogtreecommitdiff
path: root/usr/src/libpiny/lib/Piny/Environment.pm
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/libpiny/lib/Piny/Environment.pm')
-rw-r--r--usr/src/libpiny/lib/Piny/Environment.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/libpiny/lib/Piny/Environment.pm b/usr/src/libpiny/lib/Piny/Environment.pm
index 586cce3..fcd4392 100644
--- a/usr/src/libpiny/lib/Piny/Environment.pm
+++ b/usr/src/libpiny/lib/Piny/Environment.pm
@@ -24,11 +24,11 @@ sub _build_user {
if ( defined $ENV{"SUDO_UID"} ) {
return Piny::User->new( uid => $ENV{"SUDO_UID"} );
} elsif ( defined $ENV{"SUDO_USER"} ) {
- return Piny::User->new( username => $ENV{"SUDO_USER"} );
+ return Piny::User->new( name => $ENV{"SUDO_USER"} );
} elsif ( defined $ENV{"UID"} ) {
return Piny::User->new( uid => $ENV{"UID"} );
} elsif ( defined $ENV{"USER"} ) {
- return Piny::User->new( username => $ENV{"USER"} );
+ return Piny::User->new( name => $ENV{"USER"} );
} else {
return Piny::User->new( uid => $< );
};