Added code that will set the real user id of the process equal to the
effective user id.
This commit is contained in:
parent
1745aa4250
commit
e1fe9b9d4b
5
main.c
5
main.c
@ -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";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user