[systemd-commits] src/journal
Kay Sievers
kay at kemper.freedesktop.org
Sat Mar 16 08:11:22 PDT 2013
src/journal/journald-server.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 83d7d83bcc6c462ecbb4c8003e3a8b41f3b88d46
Author: Kay Sievers <kay at vrfy.org>
Date: Sat Mar 16 16:10:22 2013 +0100
journal: pass the *pid* to sd_pid_get_owner_uid()
diff --git a/src/journal/journald-server.c b/src/journal/journald-server.c
index ac565c7..364ab0f 100644
--- a/src/journal/journald-server.c
+++ b/src/journal/journald-server.c
@@ -593,7 +593,7 @@ static void dispatch_message_real(
IOVEC_SET_STRING(iovec[n++], session);
}
- if (sd_pid_get_owner_uid(ucred->uid, &owner) >= 0) {
+ if (sd_pid_get_owner_uid(ucred->pid, &owner) >= 0) {
owner_valid = true;
if (asprintf(&owner_uid, "_SYSTEMD_OWNER_UID=%lu", (unsigned long) owner) >= 0)
IOVEC_SET_STRING(iovec[n++], owner_uid);
More information about the systemd-commits
mailing list