mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-23 22:55:46 +00:00
added support for effective UID/username change detection
This commit is contained in:
parent
563abbc44b
commit
bc84920b91
@ -224,6 +224,10 @@ void ProcessList_goThroughEntries(ProcessList* this) {
|
||||
free(fp->jname);
|
||||
fp->jname = FreeBSDProcessList_readJailName(kproc);
|
||||
}
|
||||
if(proc->st_uid != kproc->ki_uid) {
|
||||
proc->st_uid = kproc->ki_uid;
|
||||
proc->user = UsersTable_getRef(this->usersTable, proc->st_uid);
|
||||
}
|
||||
if (settings->updateProcessNames) {
|
||||
free(proc->comm);
|
||||
proc->comm = FreeBSDProcessList_readProcessName(fpl->kd, kproc, &proc->basenameOffset);
|
||||
|
Loading…
Reference in New Issue
Block a user