diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2023-09-24 14:43:30 +0200 |
---|---|---|
committer | Christian Göttsche <cgzones@googlemail.com> | 2023-09-24 14:43:30 +0200 |
commit | 3716fc7bc6de07eb0c07b81c2ad9f2bd205284c8 (patch) | |
tree | ac9b2e516c3bb9e93ba3b810c8c7f72b39a9adf0 | |
parent | e79788c250c23e0c7c9f3e29fdca578ce9e9bca0 (diff) |
Initialize user ID
Set the process user ID to an invalid value of -1 to trigger a name
lookup for IDs with the value 0 ("root"). This initialization was
dropped in commit 0f751e99 ("Introduce Row and Table classes for screens
beyond top-processes").
Fixes: 0f751e99 ("Introduce Row and Table classes for screens beyond top-processes")
-rw-r--r-- | Process.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -844,6 +844,7 @@ void Process_init(Process* this, const Machine* host) { Row_init(&this->super, host); this->cmdlineBasenameEnd = -1; + this->st_uid = (uid_t)-1; } static bool Process_setPriority(Process* this, int priority) { |