1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-02 00:22:11 +03:00

Add a descriptive comment to our usage of setresuid. lib/afs.c needs

to be changed if we decide to set our real uid. Jeremy?

Volker
(This used to be commit 1fed55aa78)
This commit is contained in:
Volker Lendecke
2003-09-23 14:49:17 +00:00
parent f167cf594d
commit ee868462a0

View File

@ -183,6 +183,10 @@ void gain_root_group_privilege(void)
void set_effective_uid(uid_t uid)
{
#if USE_SETRESUID
/* On Systems which have this function, would it not be more
* appropriate to also set the real uid by doing
* setresuid(uid,uid,-1)? This would make patching AFS
* unnecessary. See comment in lib/afs.c. */
setresuid(-1,uid,-1);
#endif