From: Lennart Poettering Date: Thu, 11 Jun 2020 07:51:25 +0000 (+0200) Subject: random-seed: use ERRNO_IS_NOT_SUPPORTED() where appropriate X-Git-Tag: v246-rc1~71^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97f1c6af8cec75af411149b8349e8599976ba870;p=thirdparty%2Fsystemd.git random-seed: use ERRNO_IS_NOT_SUPPORTED() where appropriate --- diff --git a/src/random-seed/random-seed.c b/src/random-seed/random-seed.c index 596bff98f14..89452c8e152 100644 --- a/src/random-seed/random-seed.c +++ b/src/random-seed/random-seed.c @@ -305,7 +305,7 @@ static int run(int argc, char *argv[]) { * entropy later on. Let's keep that in mind by setting an extended attribute. on the file */ if (getrandom_worked) if (fsetxattr(seed_fd, "user.random-seed-creditable", "1", 1, 0) < 0) - log_full_errno(IN_SET(errno, ENOSYS, EOPNOTSUPP) ? LOG_DEBUG : LOG_WARNING, errno, + log_full_errno(ERRNO_IS_NOT_SUPPORTED(errno) ? LOG_DEBUG : LOG_WARNING, errno, "Failed to mark seed file as creditable, ignoring: %m"); }