Commit 326e43f3 authored by Jonas Termansen's avatar Jonas Termansen

Fix logname(1) not reseting errno before logname(3).

Thanks to ybden for spotting this bug.
parent 1759f690
......@@ -65,6 +65,7 @@ int main(int argc, char* argv[])
if ( 1 < argc )
errx(1, "unexpected extra operand");
errno = 0;
char* login_name = getlogin();
if ( !login_name )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment