From bac4db4f4d56619f4e995ad75cb9fc462170b7d8 Mon Sep 17 00:00:00 2001 From: Michael Spang Date: Sat, 25 Jul 2009 05:29:37 -0400 Subject: [PATCH] Fail op handling if unathenticated --- src/dslave.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/dslave.c b/src/dslave.c index f62e0a506..dd373cfab 100644 --- a/src/dslave.c +++ b/src/dslave.c @@ -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, };