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);