* Don't run setuid root when build-users is empty.

* Send startup errors to the client.
This commit is contained in:
Eelco Dolstra 2006-12-03 16:25:19 +00:00
parent 35247c4c9f
commit f4279bcde0
3 changed files with 54 additions and 29 deletions

View file

@ -73,6 +73,7 @@ RemoteStore::RemoteStore()
/* Send the magic greeting, check for the reply. */
try {
processStderr();
writeInt(WORKER_MAGIC_1, to);
unsigned int magic = readInt(from);
if (magic != WORKER_MAGIC_2) throw Error("protocol mismatch");