summaryrefslogtreecommitdiff
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
parente448007d21a2fd89ef42085bc29beb2883eb35ff (diff)
downloadpiny-code-805db01a4b6e969fd416def17fd0ae4fb418af4c.tar.gz
piny-code-805db01a4b6e969fd416def17fd0ae4fb418af4c.zip
Fix bug in username detection in libpiny.
-rw-r--r--usr/src/libpiny/debian/changelog5
-rw-r--r--usr/src/libpiny/lib/Piny/Environment.pm2
2 files changed, 4 insertions, 3 deletions
diff --git a/usr/src/libpiny/debian/changelog b/usr/src/libpiny/debian/changelog
index 9d6c07d..f7d4449 100644
--- a/usr/src/libpiny/debian/changelog
+++ b/usr/src/libpiny/debian/changelog
@@ -1,10 +1,11 @@
-libpiny-perl (0.2-2) unstable; urgency=low
+libpiny-perl (0.3-1) unstable; urgency=low
* Fix some build-depends stuff.
* Add group membership manipulation.
* Add some more type constraints.
+ * Fix a bug in the username detection.
- -- Julian Blake Kongslie <jblake@omgwallhack.org> Thu, 18 Mar 2010 13:28:35 -0700
+ -- Julian Blake Kongslie <jblake@omgwallhack.org> Thu, 18 Mar 2010 13:45:52 -0700
libpiny-perl (0.2-1) unstable; urgency=low
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 => $< );
};