GNU bug report logs - #11150
getlogin test failure

Previous Next

Package: coreutils;

Reported by: Matt Burgess <matthew <at> linuxfromscratch.org>

Date: Mon, 2 Apr 2012 00:11:02 UTC

Severity: normal

Merged with 12729

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


Message #17 received at 11150 <at> debbugs.gnu.org (full text, mbox):

From: Andrew Warshall <warshall <at> 99main.com>
To: 11150 <at> debbugs.gnu.org
Cc: matthew <at> linuxfromscratch.org
Subject: Re: bug#11150: getlogin test failure
Date: Sun, 12 Aug 2012 12:01:32 -0400
[Message part 1 (text/plain, inline)]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi-

   I'm seeing the same issue with 8.18. Apparently xterm doesn't write
   to /var/run/utmp by default, so getlogin () fails with errno ==
   ENOENT. However, isatty (0) still succeeds. The attached patch
   (based on, though not interchangeable with, the sed command at
   http://www.linuxfromscratch.org/lfs/view/development/chapter06/coreutils.html)
   skips the test under those conditions (at least it works on my
   machine). Of course, you could alternatively take the position that
   reliance on /var/run/utmp is a bug in getlogin () in gnulib; but
   then I don't know how to fix it.

      -Andrew Warshall
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQEcBAEBAgAGBQJQJ9NcAAoJEESPRWh79T7t0IYIAIlTPzKhXgRqOgsxKYAEUq4W
YHBn4fw30V5zZJdm63GSvnNjVZiBUpjD39gXVdSlgDu8mGEdCW1R2pP+D/R8C57q
XPkjoWEltHVyN/xPfQZdjbsCglxVZ7wDYkzMsWtoJ/7K8NwPSiymerGwEpdRqUej
TfBl8mimcqnASTyW+e0ScJUP5sMVEmeFI3dPmXD7kS+bvfMuVxT3YhLCtwQOSRuZ
KQgmtrB9hDRQoVRyD4ly1bDneRQprWrg8g4QXS0NSRVLehSKdH/diHHLg+8N6rgY
5pl72bwz66bAcWk6d83ax1+qRG6ibpjPAZV8wteYoClQ0Z8G+WqaF9xNVF5E2PQ=
=bmEv
-----END PGP SIGNATURE-----
[coreutils-8.18-test-getlogin-fix.patch.gz (application/octet-stream, attachment)]

This bug report was last modified 12 years and 199 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.