From 4fa79cd01321b079ad94c6041038bd3a7dcc0958 Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Wed, 7 Jul 2010 14:07:06 -0700 Subject: Lots more ikiwiki integration stuff in libpiny. --- usr/src/libpiny/lib/Piny/Environment.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (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 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 => $< ); }; -- cgit v1.2.3