]> mj.ucw.cz Git - eval.git/commitdiff
Allow /proc/meminfo
authorMartin Mares <mj@ucw.cz>
Sun, 3 Jun 2001 20:35:00 +0000 (20:35 +0000)
committerMartin Mares <mj@ucw.cz>
Sun, 3 Jun 2001 20:35:00 +0000 (20:35 +0000)
src/box.c

index 2a409a935b6cd1b9662fe2eaece27ea40e73cbaa..477d7c8539cea373e0622b4573ac3eede689debe 100644 (file)
--- a/src/box.c
+++ b/src/box.c
@@ -143,7 +143,8 @@ valid_filename(unsigned long addr)
          && !strstr(namebuf, ".."))
        return;
       if (!strcmp(namebuf, "/dev/null") ||
-         !strcmp(namebuf, "/dev/zero"))
+         !strcmp(namebuf, "/dev/zero") ||
+         !strcmp(namebuf, "/proc/meminfo"))
        return;
     }
   die("Forbidden access to file `%s'.", namebuf);