diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-10-26 21:16:43 +0100 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2020-10-29 22:21:42 +0100 |
commit | bbf01054bf943db4394027d77915f9625ebde81e (patch) | |
tree | ee5e94bd207c2c0df8e11792064c694b27de8d02 /freebsd | |
parent | 049046c700ea42e8f9bb77f5efbb5a66ed3c4651 (diff) |
Add compat wrapper for fstatat
Diffstat (limited to 'freebsd')
-rw-r--r-- | freebsd/FreeBSDProcessList.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/freebsd/FreeBSDProcessList.c b/freebsd/FreeBSDProcessList.c index 4c418114..df06546c 100644 --- a/freebsd/FreeBSDProcessList.c +++ b/freebsd/FreeBSDProcessList.c @@ -22,6 +22,7 @@ in the source distribution for its full text. #include <sys/types.h> #include <sys/user.h> +#include "Compat.h" #include "CRT.h" #include "FreeBSDProcess.h" #include "Macros.h" @@ -338,7 +339,7 @@ static void FreeBSDProcessList_scanTTYs(ProcessList* pl) { continue; struct stat info; - if (fstatat(dirFd, entry->d_name, &info, 0) < 0) + if (Compat_fstatat(dirFd, "/dev", entry->d_name, &info, 0) < 0) continue; if (!S_ISCHR(info.st_mode)) @@ -365,7 +366,7 @@ err1: const struct dirent* entry; while ((entry = readdir(dirPtr))) { struct stat info; - if (fstatat(dirFd, entry->d_name, &info, 0) < 0) + if (Compat_fstatat(dirFd, "/dev/pts", entry->d_name, &info, 0) < 0) continue; if (!S_ISCHR(info.st_mode)) |