Fail op handling if unathenticated
authorMichael Spang <mspang@uwaterloo.ca>
Sat, 25 Jul 2009 09:29:37 +0000 (05:29 -0400)
committerMichael Spang <mspang@uwaterloo.ca>
Sat, 25 Jul 2009 09:29:37 +0000 (05:29 -0400)
src/dslave.c

index f62e0a5..dd373cf 100644 (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, };