diff --git a/common.c b/common.c index f3bae27..3d570d0 100644 --- a/common.c +++ b/common.c @@ -511,7 +511,7 @@ void drop_privileges(const char* user_name) res = setgid(pw->pw_gid); CHECK_RES_DIE(res, "setgid"); - setuid(pw->pw_uid); + res = setuid(pw->pw_uid); CHECK_RES_DIE(res, "setuid"); }