diff options
author | Gerald Carter <jerry@samba.org> | 2003-09-24 15:16:57 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2003-09-24 15:16:57 +0000 |
commit | 602ad283b4724acac0a416cd1fd1124ce89ee316 (patch) | |
tree | 0a0a995abaa76d3a350d450ddb996ee260ca4f3a /source3/lib/util_sec.c | |
parent | 4b10dd945476a93fd9a7d3e047cff7592935ad34 (diff) | |
download | samba-602ad283b4724acac0a416cd1fd1124ce89ee316.tar.gz samba-602ad283b4724acac0a416cd1fd1124ce89ee316.tar.bz2 samba-602ad283b4724acac0a416cd1fd1124ce89ee316.zip |
* sync more files from 3.0
* set version string to "CVS 3.1.0alpha1"
(This used to be commit c6a61ffcbd0c95afd94bd33fd832b24bc8209de5)
Diffstat (limited to 'source3/lib/util_sec.c')
-rw-r--r-- | source3/lib/util_sec.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/lib/util_sec.c b/source3/lib/util_sec.c index 132748ce13..1980b8bfb7 100644 --- a/source3/lib/util_sec.c +++ b/source3/lib/util_sec.c @@ -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 |