Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 35821
Collapse All | Expand All

(-)sandbox/libsandbox.c (-1 / +3 lines)
Lines 862-868 Link Here
862
int before_syscall_open_char(const char* func, const char* file, const char* mode)
862
int before_syscall_open_char(const char* func, const char* file, const char* mode)
863
{
863
{
864
	if (strcmp(mode, "r") == 0 ||
864
	if (strcmp(mode, "r") == 0 ||
865
		strcmp(mode, "rb") == 0)
865
		strcmp(mode, "rb") == 0 ||
866
		strcmp(mode, "rm") == 0 ||
867
		strcmp(mode, "rt") == 0)
866
	{
868
	{
867
		return before_syscall("open_rd", file);
869
		return before_syscall("open_rd", file);
868
	}
870
	}
(-)sandbox-1.1/libsandbox.c (-1 / +1 lines)
Lines 1353-1359 Link Here
1353
before_syscall_open_char(const char *func, const char *file, const char *mode)
1353
before_syscall_open_char(const char *func, const char *file, const char *mode)
1354
{
1354
{
1355
	if ((strcmp(mode, "r") == 0) || (strcmp(mode, "rb") == 0)
1355
	if ((strcmp(mode, "r") == 0) || (strcmp(mode, "rb") == 0)
1356
			|| (strcmp(mode, "rm") == 0)) {
1356
			|| (strcmp(mode, "rm") == 0) || (strcmp(mode, "rt") == 0)) {
1357
		return before_syscall("open_rd", file);
1357
		return before_syscall("open_rd", file);
1358
	} else {
1358
	} else {
1359
		return before_syscall("open_wr", file);
1359
		return before_syscall("open_wr", file);
(-)sandbox-dev/libsandbox.c (-1 / +2 lines)
Lines 1203-1209 Link Here
1203
1203
1204
static int before_syscall_open_char(const char* func, const char* file, const char* mode)
1204
static int before_syscall_open_char(const char* func, const char* file, const char* mode)
1205
{
1205
{
1206
  if ((strcmp(mode, "r") == 0) || (strcmp(mode, "rb") == 0)) {
1206
  if ((strcmp(mode, "r") == 0) || (strcmp(mode, "rb") == 0)
1207
        || (strcmp(mode, "rm") == 0) || (strcmp(mode, "rt") == 0)) {
1207
    return before_syscall("open_rd", file);
1208
    return before_syscall("open_rd", file);
1208
  } else {
1209
  } else {
1209
    return before_syscall("open_wr", file);
1210
    return before_syscall("open_wr", file);

Return to bug 35821