[systemd-devel] [PATCH] journal: Don't use loginuid if it's not valid

Colin Walters walters at verbum.org
Tue Feb 12 11:15:35 PST 2013


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).

Signed-off-by: Colin Walters <walters at verbum.org>
---
 src/journal/journald-server.c |   18 +++++++++++++-----
 1 files changed, 13 insertions(+), 5 deletions(-)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-journal-Don-t-use-loginuid-if-it-s-not-valid.patch
Type: text/x-patch
Size: 2467 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20130212/f6ae3fad/attachment.bin>


More information about the systemd-devel mailing list