Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 34495 Details for
Bug 35821
ebuilds fail ('open_wr' sandbox violation) if fopen "rt" used in build scripts (instead of plain fopen "r")
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to allow fopen("rt") in sandbox
portage-sandbox-fopen-rt.patch (text/plain), 2.06 KB, created by
Aron Griffis (RETIRED)
on 2004-06-30 09:18:59 UTC
(
hide
)
Description:
patch to allow fopen("rt") in sandbox
Filename:
MIME Type:
Creator:
Aron Griffis (RETIRED)
Created:
2004-06-30 09:18:59 UTC
Size:
2.06 KB
patch
obsolete
>Index: sandbox/libsandbox.c >=================================================================== >RCS file: /var/cvsroot/gentoo-src/portage/src/sandbox/libsandbox.c,v >retrieving revision 1.8 >diff -u -b -B -r1.8 libsandbox.c >--- sandbox/libsandbox.c 5 Aug 2002 05:51:39 -0000 1.8 >+++ sandbox/libsandbox.c 30 Jun 2004 16:17:21 -0000 >@@ -862,7 +862,9 @@ > int before_syscall_open_char(const char* func, const char* file, const char* mode) > { > if (strcmp(mode, "r") == 0 || >- strcmp(mode, "rb") == 0) >+ strcmp(mode, "rb") == 0 || >+ strcmp(mode, "rm") == 0 || >+ strcmp(mode, "rt") == 0) > { > return before_syscall("open_rd", file); > } >Index: sandbox-1.1/libsandbox.c >=================================================================== >RCS file: /var/cvsroot/gentoo-src/portage/src/sandbox-1.1/libsandbox.c,v >retrieving revision 1.19 >diff -u -b -B -r1.19 libsandbox.c >--- sandbox-1.1/libsandbox.c 14 Apr 2004 01:47:36 -0000 1.19 >+++ sandbox-1.1/libsandbox.c 30 Jun 2004 16:17:21 -0000 >@@ -1353,7 +1353,7 @@ > before_syscall_open_char(const char *func, const char *file, const char *mode) > { > if ((strcmp(mode, "r") == 0) || (strcmp(mode, "rb") == 0) >- || (strcmp(mode, "rm") == 0)) { >+ || (strcmp(mode, "rm") == 0) || (strcmp(mode, "rt") == 0)) { > return before_syscall("open_rd", file); > } else { > return before_syscall("open_wr", file); >Index: sandbox-dev/libsandbox.c >=================================================================== >RCS file: /var/cvsroot/gentoo-src/portage/src/sandbox-dev/libsandbox.c,v >retrieving revision 1.4 >diff -u -b -B -r1.4 libsandbox.c >--- sandbox-dev/libsandbox.c 16 Dec 2002 22:28:05 -0000 1.4 >+++ sandbox-dev/libsandbox.c 30 Jun 2004 16:17:21 -0000 >@@ -1203,7 +1203,8 @@ > > static int before_syscall_open_char(const char* func, const char* file, const char* mode) > { >- if ((strcmp(mode, "r") == 0) || (strcmp(mode, "rb") == 0)) { >+ if ((strcmp(mode, "r") == 0) || (strcmp(mode, "rb") == 0) >+ || (strcmp(mode, "rm") == 0) || (strcmp(mode, "rt") == 0)) { > return before_syscall("open_rd", file); > } else { > return before_syscall("open_wr", file);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 35821
: 34495