Explorar el Código

Set the correct file type (regular file) for /proc/cpuinfo and /proc/meminfo. This addresses issue #308

Don Porter hace 7 años
padre
commit
a1fb373e98
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      LibOS/shim/src/fs/proc/info.c

+ 1 - 1
LibOS/shim/src/fs/proc/info.c

@@ -27,7 +27,7 @@ static int proc_info_stat (const char * name, struct stat * buf)
 {
     memset(buf, 0, sizeof(struct stat));
     buf->st_dev = buf->st_ino = 1;
-    buf->st_mode = 0444|S_IFDIR;
+    buf->st_mode = 0444|S_IFREG;
     buf->st_uid = 0;
     buf->st_gid = 0;
     buf->st_size = 0;