<html><head></head><body>ENOENT is checked because /tmp might not exist, not because of O_TMPFILE<br><br><div class="gmail_quote">Le 13 juin 2019 19:48:14 GMT+08:00, Thomas Guillem <thomas@gllm.fr> a écrit :<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">From man open(2):<br>EOPNOTSUPP: The filesystem containing pathname does not support O_TMPFILE.<hr> src/linux/filesystem.c | 5 +++--<br> 1 file changed, 3 insertions(+), 2 deletions(-)<br><br>diff --git a/src/linux/filesystem.c b/src/linux/filesystem.c<br>index caa97fbf3f..3712f4ba06 100644<br>--- a/src/linux/filesystem.c<br>+++ b/src/linux/filesystem.c<br>@@ -45,10 +45,11 @@ int vlc_memfd(void)<br> <br> /* Fallback to open with O_TMPFILE, */<br> fd = open("/tmp", O_RDWR | O_CLOEXEC | O_TMPFILE, S_IRUSR | S_IWUSR);<br>- if (fd != -1 || (errno != EISDIR && errno != ENOENT))<br>+ if (fd != -1 || (errno != EISDIR && errno != ENOENT && errno != EOPNOTSUPP))<br> return fd;<br> <br>- /* Fallback to POSIX implementation if O_TMPFILE is not supported */<br>+ /* Fallback to POSIX implementation if O_TMPFILE is not supported (errno is<br>+ * EISDIR, ENOENT, or EOPNOTSUPP, cf. man open(2). */<br> char bufpath[] = "/tmp/"PACKAGE_NAME"XXXXXX";<br> fd = vlc_mkstemp(bufpath);<br> if (fd != -1)</pre></blockquote></div><br>-- <br>Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.</body></html>