X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=command.c;h=200ff054b35f0735cdb41cf09eda14b8b9b77826;hb=b142089267ef501e438c3dc77ecf19bead3d4e58;hp=5b17f116d53c93956faf60f88d903b233b7e9b69;hpb=5d72d5880a6bd319a8ce2bf7dd2e4921938c77c2;p=paraslash.git diff --git a/command.c b/command.c index 5b17f116..200ff054 100644 --- a/command.c +++ b/command.c @@ -22,8 +22,8 @@ #include "net.h" #include "server.h" #include "list.h" -#include "send.h" #include "sched.h" +#include "send.h" #include "vss.h" #include "daemon.h" #include "fd.h" @@ -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++)