summaryrefslogtreecommitdiffstats
path: root/Process.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2023-09-24 14:43:30 +0200
committerChristian Göttsche <cgzones@googlemail.com>2023-09-24 14:43:30 +0200
commit3716fc7bc6de07eb0c07b81c2ad9f2bd205284c8 (patch)
treeac9b2e516c3bb9e93ba3b810c8c7f72b39a9adf0 /Process.c
parente79788c250c23e0c7c9f3e29fdca578ce9e9bca0 (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")
Diffstat (limited to 'Process.c')
-rw-r--r--Process.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Process.c b/Process.c
index 805e9242..a80d1ee8 100644
--- a/Process.c
+++ b/Process.c
@@ -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) {

© 2014-2024 Faster IT GmbH | imprint | privacy policy