7 * called by listen as rexexec rexexec net dir ...
10 main(int argc, char **argv)
19 ai = auth_proxy(0, auth_getkey, "proto=p9any role=server");
21 sysfatal("auth_proxy: %r");
22 if(strcmp(ai->cuid, "none") == 0)
23 sysfatal("rexexec by none disallowed");
24 if(auth_chuid(ai, nil) < 0)
25 sysfatal("auth_chuid: %r");
29 nn = read(0, buf+n, 1);
31 sysfatal("can't read command");
35 } while (buf[n-1] != '\0');
37 putenv("service", "rx");
38 execl("/bin/rc", "rc", "-lc", buf, nil);
39 sysfatal("can't exec rc");