The feature was deactivated in an earlier commit which converted the
lsatt command to lopsub. The problem was that "ls" would have been
interpreted as lsatt because lsatt was the only converted command
that started with ls.
Now that all server commands are converted, the lopsub library function
lls_lookup_subcmd() does the right thing, so this patch removes the
additional test for an exact match.
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;