]> git.tue.mpg.de Git - paraslash.git/commitdiff
error.h: move E_BAD_USER from audiod_command to command error list
authorAndre Noll <maan@systemlinux.org>
Mon, 21 May 2007 20:53:23 +0000 (22:53 +0200)
committerAndre Noll <maan@systemlinux.org>
Mon, 21 May 2007 20:53:23 +0000 (22:53 +0200)
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.

error.h

diff --git a/error.h b/error.h
index 732a5470c5c6f928131ec4721c6dbf90a5ddf3e2..87985dc6f477ddec7f1abe9a52682dcf8d10f60a 100644 (file)
--- 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 \