mirror of
https://github.com/clearlinux/graphene.git
synced 2026-09-07 06:14:02 +00:00
Set the correct file type (regular file) for /proc/cpuinfo and /proc/meminfo. This addresses issue #308
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user