This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[libfortran,committed] Fix PR31299, GETLOG intrinsic
- From: FX Coudert <fxcoudert at gmail dot com>
- To: Fortran List <fortran at gcc dot gnu dot org>, gcc-patches List <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 24 Apr 2007 22:40:11 +0200
- Subject: [libfortran,committed] Fix PR31299, GETLOG intrinsic
Hi all,
The patch below fixes PR31299 by making the library function for
GETLOG use getpwuid() and geteuid() instead of getlogin() to
determine the current user name. Using getlogin() is not successful
when the proccess is not attached to a terminal. This patch brings us
in line with the behaviour of the other compilers I tested.
It was bootstrapped twice already and comes with a documentation
update to reflect the change. It's fairly simple, so I'll commit to
trunk as soon as my i686-linux bootstrap of the latest version of the
patch is finished.
Thanks to the reporter and commenters of the PR,
FX
Attachment:
getlog.diff
Description: Binary data