summaryrefslogtreecommitdiff
path: root/src/coredump
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-08-21 10:09:33 +0200
committerGitHub <noreply@github.com>2018-08-21 10:09:33 +0200
commit7692fed98b784be92f900151d867f0be0975e062 (patch)
tree74af3a142a54344cb739ff0bc485bb8ad5ef60ec /src/coredump
parenta795e5a9dd7a38817545226fec721075e5080ade (diff)
parent43ad3ad7ea3dfc93d91e8bc3a47a03596705c93c (diff)
downloadsystemd-7692fed98b784be92f900151d867f0be0975e062.tar.gz
Merge pull request #9783 from poettering/get-user-creds-flags
beef up get_user_creds() a bit and other improvements
Diffstat (limited to 'src/coredump')
-rw-r--r--src/coredump/coredump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/coredump/coredump.c b/src/coredump/coredump.c
index 20a1cbdd45..31274ee602 100644
--- a/src/coredump/coredump.c
+++ b/src/coredump/coredump.c
@@ -672,7 +672,7 @@ static int change_uid_gid(const char *context[]) {
if (uid <= SYSTEM_UID_MAX) {
const char *user = "systemd-coredump";
- r = get_user_creds(&user, &uid, &gid, NULL, NULL);
+ r = get_user_creds(&user, &uid, &gid, NULL, NULL, 0);
if (r < 0) {
log_warning_errno(r, "Cannot resolve %s user. Proceeding to dump core as root: %m", user);
uid = gid = 0;