]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
analyze: use empty_or_root() where appropriate
authorLennart Poettering <lennart@poettering.net>
Tue, 2 Apr 2019 12:48:50 +0000 (14:48 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 2 Apr 2019 12:53:25 +0000 (14:53 +0200)
src/analyze/analyze-security.c

index a978ed6da86e124554460599896fdb61b230a4ad..2917aff8234d23404eba7ab2c265a43548fd113f 100644 (file)
@@ -296,10 +296,8 @@ static int assess_root_directory(
         assert(ret_description);
 
         *ret_badness =
-                (isempty(info->root_directory) ||
-                 path_equal(info->root_directory, "/")) &&
-                (isempty(info->root_image) ||
-                 path_equal(info->root_image, "/"));
+                empty_or_root(info->root_directory) ||
+                empty_or_root(info->root_image);
         *ret_description = NULL;
 
         return 0;