Fix error message for setresgid

This commit is contained in:
madmaurice 2021-01-15 20:22:22 +01:00
parent 1ab32c39d0
commit ab8ef29376

2
main.c
View file

@ -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);
} }