Browse Source

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

Don Porter 6 years ago
parent
commit
a1fb373e98
1 changed files with 1 additions and 1 deletions
  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;