summaryrefslogtreecommitdiffstats
path: root/c/src/exec/libfs/src
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2001-05-25 13:47:47 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2001-05-25 13:47:47 +0000
commite807db0033c4c66470e12e87fa90d7a7b1d8be21 (patch)
tree32197baf7b588ba7b9c8396368a2236b532374d4 /c/src/exec/libfs/src
parent2001-05-25 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-e807db0033c4c66470e12e87fa90d7a7b1d8be21.tar.bz2
2001-05-25 Joel Sherrill <joel@OARcorp.com>
* src/imfs/imfs_initsupp.c: Create the root node with the desired permissions. Nodes should be created with the right permissions because chmod() is not supported by the miniIMFS so changing after creation is not possible.
Diffstat (limited to 'c/src/exec/libfs/src')
-rw-r--r--c/src/exec/libfs/src/imfs/imfs_initsupp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/c/src/exec/libfs/src/imfs/imfs_initsupp.c b/c/src/exec/libfs/src/imfs/imfs_initsupp.c
index 3f7888d33b..bf0cb8ccdc 100644
--- a/c/src/exec/libfs/src/imfs/imfs_initsupp.c
+++ b/c/src/exec/libfs/src/imfs/imfs_initsupp.c
@@ -46,13 +46,15 @@ int IMFS_initialize_support(
/*
* Create the root node
+ *
+ * NOTE: UNIX root is 755 and owned by root/root (0/0).
*/
temp_mt_entry->mt_fs_root.node_access = IMFS_create_node(
NULL,
IMFS_DIRECTORY,
"",
- ( S_IFDIR | S_IRWXO | S_IRWXG| S_IRWXU ),
+ ( S_IFDIR | 0755 ),
NULL
);