From 7732ac0a9b2e8f6c07945bfb8a99bd80f8f028ed Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 7 Nov 2005 15:13:16 +0000 Subject: [PATCH] check env for $authserver --- cpu.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cpu.c b/cpu.c index 06948cc..d7d082e 100644 --- a/cpu.c +++ b/cpu.c @@ -181,6 +181,13 @@ cpumain(int argc, char **argv) fatal(0, "set $cpu"); system = p; } + + if(authserver == nil) { + p = getenv("auth"); + if(p == 0) + fatal(0, "set $auth"); + authserver = p; + } if(err = rexcall(&data, system, srvname)) fatal(1, "%s: %s", err, system);