aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncaen <mail@duncano.de>2016-06-25 17:41:04 +0200
committerDuncaen <mail@duncano.de>2016-06-26 23:11:07 +0200
commit788dd4b64a25b2705f962c37962363c22d9c49f9 (patch)
tree60c00ed74c0e04a25acae94982a40e077cb81726
parentf4a7d3640c8a8da587abd5d1023b14cc6620261d (diff)
downloadopendoas-788dd4b64a25b2705f962c37962363c22d9c49f9.tar.gz
fix err messages
-rw-r--r--doas.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/doas.c b/doas.c
index d955417..e74881b 100644
--- 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)