From f415228ead77e07723eb44aa2349672f7150f652 Mon Sep 17 00:00:00 2001 From: Rachita Kothiyal Date: Sun, 4 May 2008 16:39:55 -0400 Subject: [PATCH] Unionfs ODF: Fix incorrect modes on exported unionfs inodes Incorrect modes were assigned to inodes when composing a dentry from a file handle in unionfs_export_iget(). Signed-off-by: Rachita Kothiyal --- fs/unionfs/export.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/unionfs/export.c b/fs/unionfs/export.c index 9466a10c0d..7ba349b17c 100644 --- a/fs/unionfs/export.c +++ b/fs/unionfs/export.c @@ -265,7 +265,8 @@ static struct dentry *unionfs_export_iget(struct super_block *sb, return ERR_PTR(-ENOMEM); } - result->d_inode->i_mode = mode; + if (!result->d_inode->i_mode) + result->d_inode->i_mode = mode; return result; } -- 2.34.1