* [PATCH] minix: fix regression in minix_mkdir()
@ 2010-09-02 18:19 Jorge Boncompte [DTI2]
0 siblings, 0 replies; only message in thread
From: Jorge Boncompte [DTI2] @ 2010-09-02 18:19 UTC (permalink / raw)
To: LKML; +Cc: Dmitry Monakhov, Al Viro
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@dti2.net>
---
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-09-02 18:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-02 18:19 [PATCH] minix: fix regression in minix_mkdir() Jorge Boncompte [DTI2]
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox