[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

no utmp entry for /usr/lib/dpkg/controllib.pl line 16



When making packages on a completely up-to-date system (bar the new dpkg
package), I have been getting these messages on a "dpkg-buildpackage -rsudo":

  no utmp entry available, using value of LOGNAME ("bridgett") at
  /usr/lib/dpkg/controllib.pl line 16.

Here is the perl code:

if (!defined (getlogin ())) {
        warn (sprintf ('no utmp entry available, using value of LOGNAME
("%s")', $ENV{'LOGNAME'})); }

However a test script:

if (!defined (getlogin ())) {
print "NO\n"; }
else {
print "YES\n"; }

prints "YES", even if I do "sudo test.pl"

Does anyone know what's wrong and how to fix it? I am running 2.1.81 (but it
also failed under 2.0.30) and have rebooted.

Cheers

Adrian

email: adrian.bridgett@poboxes.com       | Debian Linux - www.debian.org
http://www.poboxes.com/adrian.bridgett   | Because bloated, unstable 
PGP key available on public key servers  | operating systems are from MS


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: