[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20100918191304.622629345@clark.site>
Date: Sat, 18 Sep 2010 12:13:03 -0700
From: Greg KH <gregkh@...e.de>
To: linux-kernel@...r.kernel.org, stable@...nel.org
Cc: stable-review@...nel.org, torvalds@...ux-foundation.org,
akpm@...ux-foundation.org, alan@...rguk.ukuu.org.uk,
"Jorge Boncompte [DTI2]" <jorge@...2.net>,
Dmitry Monakhov <dmonakhov@...nvz.org>,
Al Viro <viro@...iv.linux.org.uk>
Subject: [085/129] minix: fix regression in minix_mkdir()
2.6.35-stable review patch. If anyone has any objections, please let us know.
------------------
From: Jorge Boncompte [DTI2] <jorge@...2.net>
commit eee743fd7eac9f2ea69ad06d093dfb5a12538fe5 upstream.
Commit 9eed1fb721c ("minix: replace inode uid,gid,mode init with helper")
broke directory creation on minix filesystems.
Fix it by passing the needed mode flag to inode init helper.
Signed-off-by: Jorge Boncompte [DTI2] <jorge@...2.net>
Cc: Dmitry Monakhov <dmonakhov@...nvz.org>
Cc: Al Viro <viro@...iv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@...ux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@...ux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@...e.de>
---
fs/minix/namei.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/fs/minix/namei.c
+++ b/fs/minix/namei.c
@@ -115,7 +115,7 @@ static int minix_mkdir(struct inode * di
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;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists