]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - fs/hostfs/hostfs_kern.c
hostfs: Use correct mask for file mode
[mirror_ubuntu-zesty-kernel.git] / fs / hostfs / hostfs_kern.c
index ef263174acd23a88f2a110b80a67afc2fab2ddc0..07d8d8f52faf50d027f2f90a1699c7afa274aa34 100644 (file)
@@ -581,7 +581,7 @@ static int hostfs_create(struct inode *dir, struct dentry *dentry, umode_t mode,
        if (name == NULL)
                goto out_put;
 
-       fd = file_create(name, mode & S_IFMT);
+       fd = file_create(name, mode & 0777);
        if (fd < 0)
                error = fd;
        else