GNU bug report logs -
#11150
getlogin test failure
Previous Next
Full log
Message #17 received at 11150 <at> debbugs.gnu.org (full text, mbox):
[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.