mirror of
https://github.com/checkpoint-restore/criu
synced 2025-09-04 00:05:26 +00:00
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: Marcos Lilljedahl <marcosnils@gmail.com> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
4f2e4ab3be
commit
e3f900f954
@@ -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 */
|
||||||
|
Reference in New Issue
Block a user