diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-04-03 01:46:54 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-03 01:46:54 +0900 |
commit | 33ca308f388724da9f64aa2a8ca07e2f7bbe4b90 (patch) | |
tree | e4c6976dd558a9b5fa699ba927dd0432b10ef42e /src/analyze | |
parent | 82c604607f30f6ab6bf9e55e88b41e5579983520 (diff) | |
parent | 568ee8fc468d139b87ce771098b11aa15086c30f (diff) | |
download | systemd-33ca308f388724da9f64aa2a8ca07e2f7bbe4b90.tar.gz |
Merge pull request #12188 from poettering/coccinelle-fixlets
tree-wide: let's run coccinelle again
Diffstat (limited to 'src/analyze')
-rw-r--r-- | src/analyze/analyze-security.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/analyze/analyze-security.c b/src/analyze/analyze-security.c index b1b88855af..a9a93d0f07 100644 --- a/src/analyze/analyze-security.c +++ b/src/analyze/analyze-security.c @@ -297,10 +297,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; |