]> git.armaanb.net Git - opendoas.git/commitdiff
fix err messages
authorDuncaen <mail@duncano.de>
Sat, 25 Jun 2016 15:41:04 +0000 (17:41 +0200)
committerDuncaen <mail@duncano.de>
Sun, 26 Jun 2016 21:11:07 +0000 (23:11 +0200)
doas.c

diff --git a/doas.c b/doas.c
index d955417a1036d2f2413903637375898f78a7202e..e74881b7652b6dc114c2ce9874484164bb615d8f 100644 (file)
--- 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)