hfsplus: honor setgid flag on directories
[muen/linux.git] / fs / hfsplus / super.c
index 1d458b7169572c60628ccf6391846d8b2c1adea6..513c357c734b0d838f331bebc71b1deeb9f8f57f 100644 (file)
@@ -549,7 +549,7 @@ static int hfsplus_fill_super(struct super_block *sb, void *data, int silent)
 
                if (!sbi->hidden_dir) {
                        mutex_lock(&sbi->vh_mutex);
-                       sbi->hidden_dir = hfsplus_new_inode(sb, S_IFDIR);
+                       sbi->hidden_dir = hfsplus_new_inode(sb, root, S_IFDIR);
                        if (!sbi->hidden_dir) {
                                mutex_unlock(&sbi->vh_mutex);
                                err = -ENOMEM;