Added code that will set the real user id of the process equal to the

effective user id.
This commit is contained in:
Peter Simons 2001-01-19 13:05:13 +00:00
parent 1745aa4250
commit e1fe9b9d4b

5
main.c
View File

@ -75,6 +75,11 @@ main(int argc, char * argv[])
who_am_i = text_easy_sprintf("%s/%s", buf, argv[0]); who_am_i = text_easy_sprintf("%s/%s", buf, argv[0]);
} }
/* Set our real user id equal to the effective user id to avoid
confusion in case we're started as a setuid binary. */
setreuid(geteuid(), geteuid());
/* Parse the command line. */ /* Parse the command line. */
argv_help_string = "Petidomo Mailing List Server"; argv_help_string = "Petidomo Mailing List Server";