[PATCH] minix: fix regression in minix_mkdir()

From: Jorge Boncompte [DTI2]
Date: Thu Sep 02 2010 - 14:25:51 EST


Commit 9eed1fb721c6c512795f8847bccc413f3a1143bb broke directory creation on
minix filesystems.

Fix it passing needed mode flag to inode init helper.

Signed-off-by: Jorge Boncompte [DTI2] <jorge@xxxxxxxx>
---
fs/minix/namei.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/minix/namei.c b/fs/minix/namei.c
index e20ee85..f3f3578 100644
--- a/fs/minix/namei.c
+++ b/fs/minix/namei.c
@@ -115,7 +115,7 @@ static int minix_mkdir(struct inode * dir, struct dentry
*dentry, int mode)

inode_inc_link_count(dir);

- inode = minix_new_inode(dir, mode, &err);
+ inode = minix_new_inode(dir, S_IFDIR | mode, &err);
if (!inode)
goto out_dir;

--
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/