Merge branch 'for-linus-1' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[deliverable/linux.git] / fs / hostfs / hostfs_kern.c
index 4a437ab5f2968fb9e549be92c6564dfdd191a6f3..059597b23f677b0959d8264b83cf4c4a2cec34b7 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
This page took 0.026177 seconds and 5 git commands to generate.