diff options
| author | Karel Zak <kzak@redhat.com> | 2023-08-03 12:01:49 +0200 |
|---|---|---|
| committer | Karel Zak <kzak@redhat.com> | 2023-08-03 12:01:49 +0200 |
| commit | 63c15ba865aed3eca14f64494822f4ab7c2dcf30 (patch) | |
| tree | 92cb5295031f5604b3bee9afca9f34e28fb1ae51 /libmount/src | |
| parent | de20db1d32e43aaf632695df28b4a1e184530191 (diff) | |
| parent | 91c2cbdf3a04f2f3f4c4bb0d2a6053874bfa11ea (diff) | |
| download | util-linux-63c15ba865aed3eca14f64494822f4ab7c2dcf30.tar.gz | |
Merge branch 'mount/statx-enosys' of https://github.com/t-8ch/util-linux
* 'mount/statx-enosys' of https://github.com/t-8ch/util-linux:
libmount: (utils) fix statx fallback
Diffstat (limited to 'libmount/src')
| -rw-r--r-- | libmount/src/utils.c | 3 |
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 |
