From a1fb373e98aa3ce6f003e68bdee3716893bb16d3 Mon Sep 17 00:00:00 2001 From: Don Porter Date: Tue, 1 Jan 2019 12:10:05 -0500 Subject: [PATCH] Set the correct file type (regular file) for /proc/cpuinfo and /proc/meminfo. This addresses issue #308 --- LibOS/shim/src/fs/proc/info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LibOS/shim/src/fs/proc/info.c b/LibOS/shim/src/fs/proc/info.c index 521cc925..19639ec8 100644 --- a/LibOS/shim/src/fs/proc/info.c +++ b/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;