From: | "Mike Frysinger (vapier)" <vapier@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-libs/libffi/files: libffi-3.2.1-o-tmpfile-eacces.patch |
Date: | Wed, 31 Dec 2014 03:12:19 |
Message-Id: | 20141231031214.935A8E89F@oystercatcher.gentoo.org |
1 | vapier 14/12/31 03:12:14 |
2 | |
3 | Added: libffi-3.2.1-o-tmpfile-eacces.patch |
4 | Log: |
5 | Workaround O_TMPFILE bugs in the system #529044 by Simon MARCHUK. |
6 | |
7 | (Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key D2E96200) |
8 | |
9 | Revision Changes Path |
10 | 1.1 dev-libs/libffi/files/libffi-3.2.1-o-tmpfile-eacces.patch |
11 | |
12 | 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 |
13 | 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 |
14 | |
15 | Index: libffi-3.2.1-o-tmpfile-eacces.patch |
16 | =================================================================== |
17 | https://bugs.gentoo.org/529044 |
18 | |
19 | deploy this workaround until newer versions of the kernel/C library/libsandbox |
20 | are rolled out into general circulation |
21 | |
22 | --- a/src/closures.c |
23 | +++ b/src/closures.c |
24 | @@ -301,7 +301,8 @@ open_temp_exec_file_dir (const char *dir) |
25 | #ifdef O_TMPFILE |
26 | fd = open (dir, flags | O_RDWR | O_EXCL | O_TMPFILE, 0700); |
27 | /* If the running system does not support the O_TMPFILE flag then retry without it. */ |
28 | - if (fd != -1 || (errno != EINVAL && errno != EISDIR && errno != EOPNOTSUPP)) { |
29 | + if (fd != -1 || (errno != EINVAL && errno != EISDIR && errno != EOPNOTSUPP && |
30 | + errno != EACCES)) { |
31 | return fd; |
32 | } else { |
33 | errno = 0; |