summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2013-03-16 16:10:22 +0100
committerKay Sievers <kay@vrfy.org>2013-03-16 16:10:22 +0100
commit83d7d83bcc6c462ecbb4c8003e3a8b41f3b88d46 (patch)
tree98356914b3e60cc743a1b2b20e0c9409a10e89cf
parent1a512bf48cdc05d135c9b2770ca5d0bdd6310666 (diff)
journal: pass the *pid* to sd_pid_get_owner_uid()
-rw-r--r--src/journal/journald-server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/journald-server.c b/src/journal/journald-server.c
index ac565c7ece..364ab0f113 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);