Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [day] [month] [year] [list]
Date: Mon, 22 Jun 2015 02:22:13 -0400
From: Rich Felker <>
Subject: Proposed getlogin[_r] replacement

The attached getlogin[_r] implementation (with simple test program)
fixes conformance issues with the current one, which uses the
environment rather than (as required by POSIX) the controlling tty to
determine the identity of the logged-in user. It's missing protection
against cancellation points but otherwise should be doing correct
error-checking. If no problems are seen I'd like to go ahead and
commit it in this release cycle.


View attachment "new_getlogin_3.c" of type "text/plain" (1542 bytes)

Powered by blists - more mailing lists

Your e-mail address:

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.