summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--linux/LinuxProcessList.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/LinuxProcessList.c b/linux/LinuxProcessList.c
index 9c51a580..b8d794a5 100644
--- a/linux/LinuxProcessList.c
+++ b/linux/LinuxProcessList.c
@@ -1330,12 +1330,12 @@ static bool LinuxProcessList_recurseProcTree(LinuxProcessList* this, openat_arg_
proc->tgid = parent ? parent->pid : pid;
#ifdef HAVE_OPENAT
- int procFd = openat(dirFd, name, O_PATH | O_DIRECTORY | O_NOFOLLOW);
+ int procFd = openat(dirFd, entry->d_name, O_PATH | O_DIRECTORY | O_NOFOLLOW);
if (procFd < 0)
goto errorReadingProcess;
#else
char procFd[4096];
- xSnprintf(procFd, sizeof(procFd), "%s/%s", dirFd, name);
+ xSnprintf(procFd, sizeof(procFd), "%s/%s", dirFd, entry->d_name);
#endif
LinuxProcessList_recurseProcTree(this, procFd, "task", proc, period, now);