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

This commit is contained in:
Don Porter
2019-02-19 10:33:09 -05:00
parent 7bfb07025d
commit a1fb373e98
+1 -1
View File
@@ -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;