(merge from 3.0)
authorAndrew Bartlett <abartlet@samba.org>
Tue, 27 Jan 2004 10:19:11 +0000 (10:19 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 27 Jan 2004 10:19:11 +0000 (10:19 +0000)
Clarify comment on set_effective_uid()

Andrew Bartlett

source/lib/util_sec.c

index 7c2576ed91ee56b3aa95521da70122b8fb2e999c..26be27ea515b60d06ac689986cc32d4d8572b2da 100644 (file)
@@ -177,8 +177,16 @@ void gain_root_group_privilege(void)
 
 
 /****************************************************************************
- Set *only* the effective uid.
- we want to end up with ruid==0 and euid==uid
+ Set effective uid, and possibly the real uid too.
+ We want to end up with either:
+  
+   ruid==uid and euid==uid
+
+ or
+
+   ruid==0 and euid==uid
+
+ depending on what the local OS will allow us to regain root from.
 ****************************************************************************/
 void set_effective_uid(uid_t uid)
 {