From: Andre Noll Date: Mon, 21 May 2007 20:53:23 +0000 (+0200) Subject: error.h: move E_BAD_USER from audiod_command to command error list X-Git-Tag: v0.2.17~67 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=7f053695dcb0ab70745a457048e6fb0b83d75d47;hp=652128ed748840a22d4dcb85c1ac54bc95fdc33d error.h: move E_BAD_USER from audiod_command to command error list Dooh. This caused a segfault in the server's child if an unkown user connected. Fortunately, this happened right before the process exited anyway, so it's not a security issue. --- diff --git a/error.h b/error.h index 732a5470..87985dc6 100644 --- a/error.h +++ b/error.h @@ -202,7 +202,6 @@ extern const char **para_errlist[]; PARA_ERROR(AUDIOD_SYNTAX, "syntax error"), \ PARA_ERROR(UCRED_PERM, "permission denied"), \ PARA_ERROR(INVALID_AUDIOD_CMD, "invalid command"), \ - PARA_ERROR(BAD_USER, "you don't exist. Go away."), \ #define FILTER_CHAIN_ERRORS \ @@ -359,6 +358,7 @@ extern const char **para_errlist[]; PARA_ERROR(LOCK, "lock error"), \ PARA_ERROR(SENDER_CMD, "command not supported by this sender"), \ PARA_ERROR(SERVER_CRASH, "para_server crashed -- can not live without it"), \ + PARA_ERROR(BAD_USER, "you don't exist. Go away."), \ #define PLAYLIST_SELECTOR_ERRORS \