Marcel Moolenaar eef9f6d258 The getlogin_basic() function can return a 0 status with a NULL
pointer for the login name (result). Make sure to handle that
case properly. Improve robustness by checking namelen and then
nul-terminating the provided buffer to simplify subsequent logic.

Obtained from:	Juniper Networks, Inc.
MFC after:	1 week
2014-04-05 18:14:58 +00:00
..
2011-11-26 16:49:25 +00:00
2012-08-11 12:07:24 +00:00
2011-10-01 12:19:48 +00:00
2011-10-01 12:19:48 +00:00
2013-08-18 13:25:18 +00:00
2012-04-26 19:21:58 +00:00
2011-05-25 14:13:53 +00:00
2012-02-11 20:28:42 +00:00
2011-12-20 22:56:13 +00:00
2013-04-11 20:15:37 +00:00
2009-03-04 01:01:26 +00:00
2013-05-12 05:54:58 +00:00
2012-03-26 15:18:14 +00:00
2011-02-04 16:40:50 +00:00
2013-04-23 13:03:03 +00:00
2013-04-23 13:03:03 +00:00
2012-12-12 15:27:33 +00:00
2009-05-07 13:49:48 +00:00
2014-01-23 02:47:36 +00:00
2010-01-24 14:44:05 +00:00
2010-01-17 15:43:14 +00:00