[CRIU] [PATCH 19/20] compel hgen: --prefix is required

Kir Kolyshkin kir at openvz.org
Thu Dec 8 01:44:32 PST 2016


Signed-off-by: Kir Kolyshkin <kir at openvz.org>
---
 compel/src/main.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/compel/src/main.c b/compel/src/main.c
index a26b2e1..ce1ee5d 100644
--- a/compel/src/main.c
+++ b/compel/src/main.c
@@ -239,6 +239,10 @@ int main(int argc, char *argv[])
 			fprintf(stderr, "Error: option --output required\n");
 			return usage(1);
 		}
+		if (!opts.prefix) {
+			fprintf(stderr, "Error: option --prefix required\n");
+			return usage(1);
+		}
 		compel_log_init(&cli_log, log_level);
 		return piegen();
 	}
-- 
2.7.4



More information about the CRIU mailing list