]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - command.c
server: Convert com_lsatt() to lopsub.
[paraslash.git] / command.c
index 491ce3940422d1d14ab9b8fee0faf35e39df1810..d55d1e6e8a60d958ce2ffbf16e2f0d75e2065570 100644 (file)
--- a/command.c
+++ b/command.c
@@ -873,7 +873,8 @@ static int run_command(struct command_context *cc, struct iovec *iov,
        p[iov->iov_len - 1] = '\0'; /* just to be sure */
 
        ret = lls(lls_lookup_subcmd(p, server_cmd_suite, &errctx));
-       if (ret >= 0) {
+       if (ret >= 0 && !strcmp(p, lls_command_name(lls_cmd(ret,
+                       server_cmd_suite)))) {
                perms = server_command_perms[ret];
                if ((perms & cc->u->perms) != perms)
                        return -E_PERM;