From: Andre Noll Date: Tue, 17 May 2022 14:17:32 +0000 (+0200) Subject: Remove E_PERM. X-Git-Tag: v0.7.1~16 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=f33e43364af809ae6a14fe40cbf9ad0ce465c8c7;p=paraslash.git Remove E_PERM. There is only one user which may as well use the standard error code. --- diff --git a/command.c b/command.c index 5b17f116..e3f12931 100644 --- a/command.c +++ b/command.c @@ -828,7 +828,7 @@ static int run_command(struct command_context *cc, struct iovec *iov) } perms = server_command_perms[ret]; if ((perms & cc->u->perms) != perms) - return -E_PERM; + return -ERRNO_TO_PARA_ERROR(EPERM); lcmd = lls_cmd(ret, server_cmd_suite); end = iov->iov_base + iov->iov_len; for (i = 0; p < end; i++) diff --git a/error.h b/error.h index cd5c20ef..60c23294 100644 --- a/error.h +++ b/error.h @@ -172,7 +172,6 @@ PARA_ERROR(OPUS_HEADER, "invalid opus header"), \ PARA_ERROR(OPUS_SET_GAIN, "opus: could not set gain"), \ PARA_ERROR(PATH_FOUND, ""), /* not really an error */ \ - PARA_ERROR(PERM, "permission denied"), \ PARA_ERROR(PLAYLIST_EMPTY, "attempted to load empty playlist"), \ PARA_ERROR(PLAYLIST_LOADED, ""), /* not really an error */ \ PARA_ERROR(PREBUFFER_SUCCESS, "prebuffering complete"), \