Fail op handling if unathenticated

This commit is contained in:
Michael Spang 2009-07-25 05:29:37 -04:00
parent 0c828122ac
commit bac4db4f4d
1 changed files with 4 additions and 0 deletions

View File

@ -89,6 +89,10 @@ static void handle_op_message(uint32_t in_type, struct strbuf *in, struct strbuf
if (!op->name)
fatal("operation %x does not exist", in_type);
/* TEMPORARY */
if (!client_username())
fatal("unathenticated");
make_env(envp, "LANG", "C", "CEO_USER", client_username(),
"CEO_CONFIG_DIR", config_dir, NULL);
char *argv[] = { op->path, NULL, };