projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f538d7
)
logind: downgrade message about /run/utmp missing to LOG_DEBUG
author
Lennart Poettering
<lennart@poettering.net>
Mon, 8 Nov 2021 22:08:13 +0000
(23:08 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 9 Nov 2021 11:52:59 +0000
(12:52 +0100)
This isn't really anything to really complain about, let's debug log
about this, and continue quietly as if utmp was empty.
src/login/logind-core.c
patch
|
blob
|
history
diff --git
a/src/login/logind-core.c
b/src/login/logind-core.c
index 57d2d64e494de08d500d57160a0ca8f310b9008a..254a1a69fb66d10f0b77b04ec03c2751bf178f02 100644
(file)
--- 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;
}