[CRIU] [PATCH] Remove multiple command validation as cpuinfo requires it

Marcos Lilljedahl marcosnils at gmail.com
Fri Sep 18 04:11:18 PDT 2015


"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 at gmail.com>
---
 crtools.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/crtools.c b/crtools.c
index 838e7d9..2e88b02 100644
--- a/crtools.c
+++ b/crtools.c
@@ -557,9 +557,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 */
-- 
2.1.4
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvz.org/pipermail/criu/attachments/20150918/f206aa7f/attachment.html>


More information about the CRIU mailing list