From: Michael Tremer Date: Mon, 31 Oct 2022 10:15:39 +0000 (+0000) Subject: pakfire: Read the effective UID/GID X-Git-Tag: 0.9.28~185 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=955d027ff1c769ea9cb3c11bd35fd0826cba35a0;p=pakfire.git pakfire: Read the effective UID/GID Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/pakfire.c b/src/libpakfire/pakfire.c index dafdd5c80..3ef63f34d 100644 --- a/src/libpakfire/pakfire.c +++ b/src/libpakfire/pakfire.c @@ -727,8 +727,8 @@ PAKFIRE_EXPORT int pakfire_create(struct pakfire** pakfire, const char* path, p->flags = flags; // Store the UID/GID we are running as - p->uid = getuid(); - p->gid = getgid(); + p->uid = geteuid(); + p->gid = getegid(); // Set architecture pakfire_string_set(p->arch, arch);