Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Applied logname patch correctly

  • Loading branch information...
commit d5417a530ff721534361c16a0959bb3f14bd2a75 1 parent ac337ed
Craig Small authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 dh_make
View
5 dh_make
@@ -269,9 +269,9 @@ sub get_logname
# lightdm in Ubuntu 11.10 does not set LOGNAME
# (https://bugs.launchpad.net/bugs/875705). Work around this by trying
# USER instead.
- if (exists $logname)
+ if (exists $ENV{LOGNAME})
{
- return $logname;
+ return $ENV{LOGNAME};
} elsif (exists $ENV{USER}) {
return $ENV{USER};
} else {
@@ -322,6 +322,7 @@ sub get_email()
{
return $ENV{DEBEMAIL} if ($ENV{DEBEMAIL} );
return $ENV{EMAIL} if ($ENV{EMAIL} );
+ my $logname = get_logname();
if (-x '/usr/bin/ldapsearch')
{
my $mail;
Please sign in to comment.
Something went wrong with that request. Please try again.