mirror of
https://github.com/troglobit/libite.git
synced 2026-10-30 12:40:38 +00:00
Fix issue with tempfile() returning EOPNOTSUPP on Azure
Turns out O_TMPFILE can fail in interesting ways when the underlying filesystem doesn't support unnamed inodes, e.g. Azure used by GitHub Actions. Here's the exact qoute from open(2): "O_TMPFILE requires support by the underlying filesystem; only a subset of Linux filesystems provide that support. In the initial implementation, support was provided in the ext2, ext3, ext4, UDF, Minix, and shmem filesystems. Support for other filesystems has subsequently been added as follows: XFS (Linux 3.15); Btrfs (Linux 3.16); F2FS (Linux 3.16); and ubifs (Linux 4.9)" This patch adds a silent fallback to tmpfile() in these cases. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
1b6707f44e
commit
3d2a975f11
2 files changed
+14
-1
No files matched your search
@@ -4,6 +4,14 @@ Change Log
|
||||
All notable changes to the project are documented in this file.
|
||||
|
||||
|
||||
[v2.4.1][UNRELEASED]
|
||||
-----------------------
|
||||
|
||||
### Changes
|
||||
### Fixes
|
||||
- Fix issue with `tempfile()` returning EOPNOTSUPP on Azure
|
||||
|
||||
|
||||
[v2.4.0][] - 2021-03-27
|
||||
-----------------------
|
||||
|
||||
|
||||
Reference in new issue
Block a user