Magellan Linux

Annotation of /trunk/sandbox/patches/sandbox-1.2.20_alpha2-open-cloexec.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 696 - (hide annotations) (download)
Sun Oct 5 17:44:15 2008 UTC (15 years, 8 months ago) by niro
File size: 492 byte(s)
-glibc-2.7 fixes

1 niro 696 http://bugs.gentoo.org/196720
2    
3     mark the new "e" fopen() flag as safe
4    
5     --- sandbox-1.2.18.1/src/libsandbox.c
6     +++ sandbox-1.2.18.1/src/libsandbox.c
7     @@ -1595,7 +1595,7 @@
8     {
9     if (*mode == 'r' && (0 == (strcmp(mode, "r")) ||
10     /* The strspn accept args are known non-writable modifiers */
11     - (strlen(++mode) == strspn(mode, "xbtmc")))) {
12     + (strlen(++mode) == strspn(mode, "xbtmce")))) {
13     return before_syscall("open_rd", file);
14     } else {
15     return before_syscall("open_wr", file);