From e807db0033c4c66470e12e87fa90d7a7b1d8be21 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 25 May 2001 13:47:47 +0000 Subject: 2001-05-25 Joel Sherrill * 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. --- c/src/exec/libfs/src/imfs/imfs_initsupp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'c/src/exec/libfs/src') 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 ); -- cgit v1.2.3