and 0 in the places where it does.
Jeremy
if (!afs_decode_token(token_string, &cell, &ticket, &ct))
return False;
- if (geteuid() != 0)
+ if (geteuid() != sec_initial_uid())
ct.ViceId = getuid();
result = afs_settoken(cell, &ct, ticket);
* loop check do a new check as root.
*/
- if( geteuid() != 0 )
+ if( geteuid() != sec_initial_uid() )
return;
if(log_overflow || !need_to_check_log_size() )
/* If we're running as non root we might not be able to dump the core
* file to the corepath. There must not be an unbecome_root() before
* we call abort(). */
- if (geteuid() != 0) {
+ if (geteuid() != sec_initial_uid()) {
become_root();
}
return NULL;
}
- if (geteuid() != 0) {
+ if (geteuid() != sec_initial_uid()) {
become_root();
done_become_root = True;
}
err_root_exit:
TALLOC_FREE(smb_fname_cpath);
/* We must exit this function as root. */
- if (geteuid() != sec_initial_uid()) {
+ if (geteuid() != 0) {
change_to_root_user();
}
if (on_err_call_dis_hook) {