From 7f053695dcb0ab70745a457048e6fb0b83d75d47 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Mon, 21 May 2007 22:53:23 +0200 Subject: [PATCH] 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. --- error.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 \ -- 2.39.2