diff options
author | Mike Yuan <me@yhndnzj.com> | 2023-09-13 06:48:44 +0200 |
---|---|---|
committer | Mike Yuan <me@yhndnzj.com> | 2023-09-19 15:45:27 +0200 |
commit | 79de6eb1a7a2d46b3a582fae4b66315246598c0c (patch) | |
tree | da500285a8da37214a0b5ea7f79b9270b2c104f3 /src/creds | |
parent | Merge pull request #29221 from keszybz/fedora-cloud-latest (diff) | |
download | systemd-79de6eb1a7a2d46b3a582fae4b66315246598c0c.tar.xz systemd-79de6eb1a7a2d46b3a582fae4b66315246598c0c.zip |
tree-wide: explicitly compare return value of fd_is_fs_type with 0
According to our coding style.
Diffstat (limited to 'src/creds')
-rw-r--r-- | src/creds/creds.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/creds/creds.c b/src/creds/creds.c index 0bc55a36d2..101e5abf9b 100644 --- a/src/creds/creds.c +++ b/src/creds/creds.c @@ -181,8 +181,8 @@ static int add_credentials_to_table(Table *t, bool encrypted) { if (r < 0) return log_error_errno(r, "Failed to determine backing file system of '%s': %m", de->d_name); - secure = r ? "secure" : "weak"; /* ramfs is not swappable, hence "secure", everything else is "weak" */ - secure_color = r ? ansi_highlight_green() : ansi_highlight_yellow4(); + secure = r > 0 ? "secure" : "weak"; /* ramfs is not swappable, hence "secure", everything else is "weak" */ + secure_color = r > 0 ? ansi_highlight_green() : ansi_highlight_yellow4(); } j = path_join(prefix, de->d_name); |