lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <4C7FEA9B.70002@dti2.net>
Date:	Thu, 02 Sep 2010 20:19:07 +0200
From:	"Jorge Boncompte [DTI2]" <jorge@...2.net>
To:	LKML <linux-kernel@...r.kernel.org>
CC:	Dmitry Monakhov <dmonakhov@...nvz.org>,
	Al Viro <viro@...iv.linux.org.uk>
Subject: [PATCH] minix: fix regression in minix_mkdir()

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@...2.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

--
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ