vapier      14/12/31 03:12:14

  Added:                libffi-3.2.1-o-tmpfile-eacces.patch
  Log:
  Workaround O_TMPFILE bugs in the system #529044 by Simon MARCHUK.
  
  (Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key 
D2E96200)

Revision  Changes    Path
1.1                  dev-libs/libffi/files/libffi-3.2.1-o-tmpfile-eacces.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libffi/files/libffi-3.2.1-o-tmpfile-eacces.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libffi/files/libffi-3.2.1-o-tmpfile-eacces.patch?rev=1.1&content-type=text/plain

Index: libffi-3.2.1-o-tmpfile-eacces.patch
===================================================================
https://bugs.gentoo.org/529044

deploy this workaround until newer versions of the kernel/C library/libsandbox
are rolled out into general circulation

--- a/src/closures.c
+++ b/src/closures.c
@@ -301,7 +301,8 @@ open_temp_exec_file_dir (const char *dir)
 #ifdef O_TMPFILE
   fd = open (dir, flags | O_RDWR | O_EXCL | O_TMPFILE, 0700);
   /* If the running system does not support the O_TMPFILE flag then retry 
without it. */
-  if (fd != -1 || (errno != EINVAL && errno != EISDIR && errno != EOPNOTSUPP)) 
{
+  if (fd != -1 || (errno != EINVAL && errno != EISDIR && errno != EOPNOTSUPP &&
+                  errno != EACCES)) {
     return fd;
   } else {
     errno = 0;




Reply via email to