From d62174b9bd27f64bddcc2219416de27819d23246 Mon Sep 17 00:00:00 2001 From: cgoesche Date: Fri, 22 Aug 2025 20:56:48 -0400 Subject: [PATCH] procfs: use F_TYPE_EQUAL() macro for statfs.f_type comparison Addresses: #2332 Signed-off-by: Christian Goeschel Ndjomouo --- lib/procfs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/procfs.c b/lib/procfs.c index 5dab11b88..47cc8eea2 100644 --- a/lib/procfs.c +++ b/lib/procfs.c @@ -20,6 +20,7 @@ #include "all-io.h" #include "debug.h" #include "strutils.h" +#include "statfs_magic.h" static void procfs_process_deinit_path(struct path_cxt *pc); @@ -412,7 +413,7 @@ int fd_is_procfs(int fd) } } while (ret != 0); - return st.f_type == STATFS_PROC_MAGIC; + return F_TYPE_EQUAL(st.f_type, STATFS_PROC_MAGIC); return 0; } #else -- 2.47.3