diff options
Diffstat (limited to 'fs/9p/vfs_inode.c')
-rw-r--r-- | fs/9p/vfs_inode.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c index 88efc161743b..c3d200d41dca 100644 --- a/fs/9p/vfs_inode.c +++ b/fs/9p/vfs_inode.c | |||
@@ -876,6 +876,8 @@ static int v9fs_vfs_mkdir_dotl(struct inode *dir, struct dentry *dentry, | |||
876 | v9ses = v9fs_inode2v9ses(dir); | 876 | v9ses = v9fs_inode2v9ses(dir); |
877 | 877 | ||
878 | mode |= S_IFDIR; | 878 | mode |= S_IFDIR; |
879 | if (dir->i_mode & S_ISGID) | ||
880 | mode |= S_ISGID; | ||
879 | dir_dentry = v9fs_dentry_from_dir_inode(dir); | 881 | dir_dentry = v9fs_dentry_from_dir_inode(dir); |
880 | dfid = v9fs_fid_lookup(dir_dentry); | 882 | dfid = v9fs_fid_lookup(dir_dentry); |
881 | if (IS_ERR(dfid)) { | 883 | if (IS_ERR(dfid)) { |