From 0130a03179f687c050247ee7e4367f0f4987a7f2 Mon Sep 17 00:00:00 2001 From: Topi Miettinen Date: Wed, 18 Dec 2019 20:25:03 +0200 Subject: [PATCH] analyze: badness if neither of RootImage and RootDirectory exists Instead of requiring both RootImage and RootDirectory directives, give badness points if neither is present. Fixes conversion in d737b451f. (cherry picked from commit d909b40fda52d6822a0f7201f9c17818df2bd091) --- src/analyze/analyze-security.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/analyze/analyze-security.c b/src/analyze/analyze-security.c index 79b099a409..20c1401390 100644 --- a/src/analyze/analyze-security.c +++ b/src/analyze/analyze-security.c @@ -306,7 +306,7 @@ static int assess_root_directory( assert(ret_description); *ret_badness = - empty_or_root(info->root_directory) || + empty_or_root(info->root_directory) && empty_or_root(info->root_image); *ret_description = NULL; -- 2.25.1