check env for $authserver

This commit is contained in:
Russ Cox 2005-11-07 15:13:16 +00:00
parent 43b112897a
commit 7732ac0a9b
1 changed files with 7 additions and 0 deletions

7
cpu.c
View File

@ -182,6 +182,13 @@ cpumain(int argc, char **argv)
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);