summaryrefslogtreecommitdiffstats
path: root/fs/ramfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ramfs.c')
-rw-r--r--fs/ramfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ramfs.c b/fs/ramfs.c
index 319c91ad6b..38ef035d53 100644
--- a/fs/ramfs.c
+++ b/fs/ramfs.c
@@ -249,7 +249,7 @@ static int ramfs_unlink(struct device_d *dev, const char *pathname)
static int ramfs_mkdir(struct device_d *dev, const char *pathname)
{
- return ramfs_create(dev, pathname, S_IFDIR);
+ return ramfs_create(dev, pathname, S_IFDIR | S_IRWXU | S_IRWXG | S_IRWXO);
}
static int ramfs_rmdir(struct device_d *dev, const char *pathname)