bug-coreutils
[Top][All Lists]
Advanced

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

bug#11150: getlogin test failure


From: Andrew Warshall
Subject: bug#11150: getlogin test failure
Date: Sun, 12 Aug 2012 12:01:32 -0400

-----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-----

Attachment: coreutils-8.18-test-getlogin-fix.patch.gz
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]