chiark / gitweb /
journal: Don't use loginuid if it's not valid
authorColin Walters <walters@verbum.org>
Tue, 12 Feb 2013 17:24:30 +0000 (12:24 -0500)
committerLennart Poettering <lennart@poettering.net>
Wed, 13 Feb 2013 00:02:25 +0000 (01:02 +0100)
commit759c945a43577d56e85a927f15e7d9aaa94a4e4a
treeb35afd4f6b987898e5929a24bfd02291864d7194
parentb43d1d01eabe2cbbf393e8f56b76e182c6069c4c
journal: Don't use loginuid if it's not valid

Code above this attempted to load loginuid, if this failed for
whatever reason, we'd still end up using that value (0) in place of
realuid.  Fix this by setting a bool when we know the loginuid is
valid.

This fixes journal messages showing up in per-user journals in
gnome-ostree (not configured with loginuid, but I'll shortly fix
that).
src/journal/journald-server.c