summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.c b/main.c
index e08bbdb7..15602819 100644
--- a/main.c
+++ b/main.c
@@ -42,6 +42,10 @@ root_make_node (struct node **np)
if (! *np)
return ENOMEM;
+ /* Since this one is not created through proc_lookup(), we have to affect an
+ inode number to it. */
+ (*np)->nn_stat.st_ino = * (uint32_t *) "PROC";
+
return 0;
}