From 659b3ce9a732fcabb6a1397a82dfdbed1ae9a570 Mon Sep 17 00:00:00 2001 From: PatR Date: Mon, 7 Oct 2019 14:44:32 -0700 Subject: [PATCH] more unix username (#26 - validating #explore) I had this in place at one point but must have accidentally undone it before deciding that yesterday's patch was finished. Defer fetching 'pw' until it's needed. --- sys/unix/unixmain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/unix/unixmain.c b/sys/unix/unixmain.c index 92cf02863..7e0fcd94a 100644 --- a/sys/unix/unixmain.c +++ b/sys/unix/unixmain.c @@ -651,7 +651,7 @@ boolean check_user_string(optstr) char *optstr; { - struct passwd *pw = get_unix_pw(); + struct passwd *pw; int pwlen; char *eop, *w; char *pwname = 0;