Public bug reported:

Running dupload from a background service (Jenkins in my case) seems to impact 
the functioning of getlogin resulting in dupload halting with the following 
error

dupload fatal error: Who am I? (can't get user identity)
 at /usr/bin/dupload line 87

The fix to this really straight forward. Line 28 or so amend to:

my $user = getlogin() || getpwuid($<) || $ENV{LOGNAME} || $ENV{USER};

Reference to this being the recommended practice includes:

http://perldoc.perl.org/functions/getlogin.html

** Affects: dupload (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1140837

Title:
  Identification of user by getlogin not 100% reliable

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dupload/+bug/1140837/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to