check env for $authserver

This commit is contained in:
Russ Cox 2005-11-07 15:13:16 +00:00
parent 43b112897a
commit 7732ac0a9b

7
cpu.c
View File

@ -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);