]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - command.c
Enable partial matching for server commands.
[paraslash.git] / command.c
index 9cf8b049cf2acb76bbc4329b83472e2b74f17de9..8608f309292ff13dc74bc43b5e2b0b5bdc04807f 100644 (file)
--- a/command.c
+++ b/command.c
@@ -872,8 +872,7 @@ 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 && !strcmp(p, lls_command_name(lls_cmd(ret,
-                       server_cmd_suite)))) {
+       if (ret >= 0) {
                perms = server_command_perms[ret];
                if ((perms & cc->u->perms) != perms)
                        return -E_PERM;