summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps/sandbox/files/sandbox-1.2.18.1-open-cloexec.patch')
-rw-r--r--sys-apps/sandbox/files/sandbox-1.2.18.1-open-cloexec.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/sys-apps/sandbox/files/sandbox-1.2.18.1-open-cloexec.patch b/sys-apps/sandbox/files/sandbox-1.2.18.1-open-cloexec.patch
new file mode 100644
index 000000000000..806f1a3a6773
--- /dev/null
+++ b/sys-apps/sandbox/files/sandbox-1.2.18.1-open-cloexec.patch
@@ -0,0 +1,15 @@
+http://bugs.gentoo.org/196720
+
+mark the new "e" fopen() flag as safe
+
+--- sandbox-1.2.18.1/src/libsandbox.c
++++ sandbox-1.2.18.1/src/libsandbox.c
+@@ -1595,7 +1595,7 @@
+ {
+ if (*mode == 'r' && (0 == (strcmp(mode, "r")) ||
+ /* The strspn accept args are known non-writable modifiers */
+- (strlen(++mode) == strspn(mode, "xbtmc")))) {
++ (strlen(++mode) == strspn(mode, "xbtmce")))) {
+ return before_syscall("open_rd", file);
+ } else {
+ return before_syscall("open_wr", file);