Skip to content

Commit

Permalink
Remove multiple command validation as cpuinfo requires it
Browse files Browse the repository at this point in the history
"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>
  • Loading branch information
marcosnils authored and xemul committed Sep 21, 2015
1 parent 4f2e4ab commit e3f900f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions crtools.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit e3f900f

Please sign in to comment.