[libfortran,committed] Fix PR31299, GETLOG intrinsic

FX Coudert fxcoudert@gmail.com
Tue Apr 24 21:12:00 GMT 2007


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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: getlog.diff
Type: application/octet-stream
Size: 3599 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20070424/e5a72084/attachment.obj>


More information about the Gcc-patches mailing list