|
Message-ID: <20150622062213.GA21512@brightrain.aerifal.cx>
Date: Mon, 22 Jun 2015 02:22:13 -0400
From: Rich Felker <dalias@...c.org>
To: musl@...ts.openwall.com
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.
Rich
View attachment "new_getlogin_3.c" of type "text/plain" (1542 bytes)
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.