From: cgoesche Date: Sat, 23 Aug 2025 00:56:48 +0000 (-0400) Subject: procfs: use F_TYPE_EQUAL() macro for statfs.f_type comparison X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d62174b9bd27f64bddcc2219416de27819d23246;p=thirdparty%2Futil-linux.git procfs: use F_TYPE_EQUAL() macro for statfs.f_type comparison Addresses: #2332 Signed-off-by: Christian Goeschel Ndjomouo --- 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