Merge media-sound/spotify: Fix homepage URL
[gentoo.git] / dev-libs / libffi / files / libffi-3.2.1-o-tmpfile-eacces.patch
1 https://bugs.gentoo.org/529044
2
3 deploy this workaround until newer versions of the kernel/C library/libsandbox
4 are rolled out into general circulation
5
6 --- a/src/closures.c
7 +++ b/src/closures.c
8 @@ -301,7 +301,8 @@ open_temp_exec_file_dir (const char *dir)
9  #ifdef O_TMPFILE
10    fd = open (dir, flags | O_RDWR | O_EXCL | O_TMPFILE, 0700);
11    /* If the running system does not support the O_TMPFILE flag then retry without it. */
12 -  if (fd != -1 || (errno != EINVAL && errno != EISDIR && errno != EOPNOTSUPP)) {
13 +  if (fd != -1 || (errno != EINVAL && errno != EISDIR && errno != EOPNOTSUPP &&
14 +                  errno != EACCES)) {
15      return fd;
16    } else {
17      errno = 0;