chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
sd-network: avoid false positive compiler warning caused by LTO
[elogind.git]
/
src
/
journal
/
journald-server.c
diff --git
a/src/journal/journald-server.c
b/src/journal/journald-server.c
index 0439caf90985f9ba49a3d8b1742f7d2c84751c54..381d80a9389300aaf72b7ea64ac17f769c1071a4 100644
(file)
--- a/
src/journal/journald-server.c
+++ b/
src/journal/journald-server.c
@@
-258,7
+258,7
@@
static JournalFile* find_journal(Server *s, uid_t uid) {
if (s->runtime_journal)
return s->runtime_journal;
- if (uid <=
0
)
+ if (uid <=
SYSTEM_UID_MAX
)
return s->system_journal;
r = sd_id128_get_machine(&machine);