summaryrefslogtreecommitdiff
path: root/tmpfs
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2001-05-02 03:18:37 +0000
committerRoland McGrath <roland@gnu.org>2001-05-02 03:18:37 +0000
commita2bd823e81ca312339032dd023ad0713be47c064 (patch)
treed7a0957ae0e8a5acf815695ae9df5156592a53fd /tmpfs
parentb6bbc11f6896c735053b68b516b2bc3e8c6fd23c (diff)
2001-05-01 Neal H Walfield <neal@cs.uml.edu>
* tmpfs.c (main): Set diskfs_root_node->dn_stat.st_nlink to 2.
Diffstat (limited to 'tmpfs')
-rw-r--r--tmpfs/tmpfs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tmpfs/tmpfs.c b/tmpfs/tmpfs.c
index 2612d44f..baa42581 100644
--- a/tmpfs/tmpfs.c
+++ b/tmpfs/tmpfs.c
@@ -292,6 +292,7 @@ main (int argc, char **argv)
}
diskfs_root_node->dn_stat.st_mode &= ~S_ITRANS;
diskfs_root_node->dn_stat.st_mode |= S_IROOT;
+ diskfs_root_node->dn_stat.st_nlink = 2;
mutex_unlock (&diskfs_root_node->lock);