blob: 806f1a3a677367dc3fe07fd87eb40db7e34f2839 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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);
|