diff --git a/criu/crtools.c b/criu/crtools.c index 3c3491603..86aeb4d2b 100644 --- a/criu/crtools.c +++ b/criu/crtools.c @@ -185,9 +185,6 @@ int main(int argc, char *argv[], char *envp[]) return cr_service_work(atoi(argv[optind + 1])); } - if (check_options()) - return 1; - if (opts.imgs_dir == NULL) SET_CHAR_OPTS(imgs_dir, "."); @@ -264,6 +261,9 @@ int main(int argc, char *argv[], char *envp[]) return 1; } + if (check_options()) + return 1; + if (fault_injected(FI_CANNOT_MAP_VDSO)) kdat.can_map_vdso = 0;