summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libudev/path-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libudev/path-util.c b/src/libudev/path-util.c
index 3512002cfa..41bc20de69 100644
--- a/src/libudev/path-util.c
+++ b/src/libudev/path-util.c
@@ -272,7 +272,7 @@ int path_is_mount_point(const char *t, bool allow_symlink) {
r = name_to_handle_at(AT_FDCWD, t, &h.handle, &mount_id, allow_symlink ? AT_SYMLINK_FOLLOW : 0);
if (r < 0) {
- if (IN_SET(errno, ENOSYS, EOPNOTSUPP))
+ if (errno == ENOSYS || errno == ENOTSUP)
/* This kernel or file system does not support
* name_to_handle_at(), hence fallback to the
* traditional stat() logic */