diff options
author | Lennart Poettering <lennart@poettering.net> | 2019-04-02 14:48:50 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2019-04-02 14:53:25 +0200 |
commit | d737b451fe64b659bfe1128052c9d4cb129f4bf0 (patch) | |
tree | 66d2c301e72fb57f447ab64df6eacc3f2744c7ff | |
parent | Merge pull request #12185 from poettering/login-unstore-fd (diff) | |
download | systemd-d737b451fe64b659bfe1128052c9d4cb129f4bf0.tar.xz systemd-d737b451fe64b659bfe1128052c9d4cb129f4bf0.zip |
analyze: use empty_or_root() where appropriate
-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 a978ed6da8..2917aff823 100644 --- a/src/analyze/analyze-security.c +++ b/src/analyze/analyze-security.c @@ -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; |