From e3f900f95429bc0447d8e3cff3cbb2e0a19f8d23 Mon Sep 17 00:00:00 2001 From: Marcos Lilljedahl Date: Fri, 18 Sep 2015 14:11:00 +0300 Subject: [PATCH] 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 Signed-off-by: Pavel Emelyanov --- crtools.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/crtools.c b/crtools.c index 4de8b0bb11..ea8b889f08 100644 --- a/crtools.c +++ b/crtools.c @@ -564,9 +564,6 @@ int main(int argc, char *argv[], char *envp[]) return 1; memcpy(opts.exec_cmd, &argv[optind + 1], (argc - optind - 1) * sizeof(char *)); 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 */