chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1a512bf
)
journal: pass the *pid* to sd_pid_get_owner_uid()
author
Kay Sievers
<kay@vrfy.org>
Sat, 16 Mar 2013 15:10:22 +0000
(16:10 +0100)
committer
Kay Sievers
<kay@vrfy.org>
Sat, 16 Mar 2013 15:10:22 +0000
(16:10 +0100)
src/journal/journald-server.c
patch
|
blob
|
history
diff --git
a/src/journal/journald-server.c
b/src/journal/journald-server.c
index ac565c7ece96ce1b1bbf57962c9fe04467ddea1e..364ab0f113f615bfc137a4723947ca67d710123c 100644
(file)
--- 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);
}
IOVEC_SET_STRING(iovec[n++], session);
}
- if (sd_pid_get_owner_uid(ucred->
u
id, &owner) >= 0) {
+ if (sd_pid_get_owner_uid(ucred->
p
id, &owner) >= 0) {
owner_valid = true;
if (asprintf(&owner_uid, "_SYSTEMD_OWNER_UID=%lu", (unsigned long) owner) >= 0)
IOVEC_SET_STRING(iovec[n++], owner_uid);
owner_valid = true;
if (asprintf(&owner_uid, "_SYSTEMD_OWNER_UID=%lu", (unsigned long) owner) >= 0)
IOVEC_SET_STRING(iovec[n++], owner_uid);