aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libmount/src/utils.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libmount/src/utils.c b/libmount/src/utils.c
index 50553f1d5a..410ded4aa2 100644
--- a/libmount/src/utils.c
+++ b/libmount/src/utils.c
@@ -133,7 +133,8 @@ static int safe_stat(const char *target, struct stat *st, int nofollow)
st->st_mode = stx.stx_mode;
}
- if (rc == 0 || errno != EOPNOTSUPP)
+ if (rc == 0 ||
+ (errno != EOPNOTSUPP && errno != ENOSYS && errno != EINVAL))
return rc;
}
#endif