This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]