diff options
author | Lennart Poettering <lennart@poettering.net> | 2021-11-08 23:08:13 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2021-11-09 12:52:59 +0100 |
commit | 9830d716147c4e35026457027af95f303e690ae9 (patch) | |
tree | 7ee132d2589f8d1297388fa7450b45ed3fca8cd7 | |
parent | 4f538d7b221de5707c1ff422e6e34be795535397 (diff) | |
download | systemd-9830d716147c4e35026457027af95f303e690ae9.tar.gz |
logind: downgrade message about /run/utmp missing to LOG_DEBUG
This isn't really anything to really complain about, let's debug log
about this, and continue quietly as if utmp was empty.
-rw-r--r-- | src/login/logind-core.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/login/logind-core.c b/src/login/logind-core.c index 57d2d64e49..254a1a69fb 100644 --- a/src/login/logind-core.c +++ b/src/login/logind-core.c @@ -721,7 +721,9 @@ int manager_read_utmp(Manager *m) { errno = 0; u = getutxent(); if (!u) { - if (errno != 0) + if (errno == ENOENT) + log_debug_errno(errno, _PATH_UTMPX " does not exist, ignoring."); + else if (errno != 0) log_warning_errno(errno, "Failed to read " _PATH_UTMPX ", ignoring: %m"); return 0; } |