Commit e3f900f9 authored by Marcos Lilljedahl's avatar Marcos Lilljedahl Committed by Pavel Emelyanov

Remove multiple command validation as cpuinfo requires it

"criu cpuinfo [dump | check]" can't be used through the command line as this validation kicks in.
Other commands will fail due to required arguments so I believe it's not necessary anymore.
Signed-off-by: 's avatarMarcos Lilljedahl <marcosnils@gmail.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 4f2e4ab3
...@@ -564,9 +564,6 @@ int main(int argc, char *argv[], char *envp[]) ...@@ -564,9 +564,6 @@ int main(int argc, char *argv[], char *envp[])
return 1; return 1;
memcpy(opts.exec_cmd, &argv[optind + 1], (argc - optind - 1) * sizeof(char *)); memcpy(opts.exec_cmd, &argv[optind + 1], (argc - optind - 1) * sizeof(char *));
opts.exec_cmd[argc - optind - 1] = NULL; opts.exec_cmd[argc - optind - 1] = NULL;
} else if (optind + 1 != argc) {
pr_err("Unable to handle more than one command\n");
goto usage;
} }
/* We must not open imgs dir, if service is called */ /* We must not open imgs dir, if service is called */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment