Fix error message for setresgid
This commit is contained in:
parent
1ab32c39d0
commit
ab8ef29376
1 changed files with 1 additions and 1 deletions
2
main.c
2
main.c
|
@ -27,7 +27,7 @@ void drop_root(void)
|
||||||
if (setresgid(-1,gid,gid) == -1)
|
if (setresgid(-1,gid,gid) == -1)
|
||||||
{
|
{
|
||||||
int err = errno;
|
int err = errno;
|
||||||
printf("Failed to drop root privileges with setegid (%d)\n", err);
|
printf("Failed to drop root privileges with setresgid (%d)\n", err);
|
||||||
exit(err);
|
exit(err);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue