opendoas

A portable version of the OpenBSD `doas` command
git clone https://pi.duncano.de/git/opendoas.git
Log | Files | Refs | README | LICENSE

commit 788dd4b64a25b2705f962c37962363c22d9c49f9
parent f4a7d3640c8a8da587abd5d1023b14cc6620261d
Author: Duncaen <mail@duncano.de>
Date:   Sat, 25 Jun 2016 17:41:04 +0200

fix err messages

Diffstat:
doas.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/doas.c b/doas.c @@ -398,11 +398,11 @@ main(int argc, char **argv) errx(1, "failed to set user context for target"); #else if (setresgid(pw->pw_gid, pw->pw_gid, pw->pw_gid) != 0) - errx(1, "setgid"); + errx(1, "setresgid"); if (initgroups(pw->pw_name, pw->pw_gid) != 0) errx(1, "initgroups"); if (setresuid(target, target, target) != 0) - errx(1, "setuid"); + errx(1, "setresuid"); #endif if (pledge("stdio rpath exec", NULL) == -1)