Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/fs/libfs.c b/fs/libfs.c
- index e28da9574a65..e9e348c09021 100644
- --- a/fs/libfs.c
- +++ b/fs/libfs.c
- @@ -1653,7 +1653,7 @@ struct inode *alloc_anon_inode(struct super_block *s)
- * regular files but S_IFREG is masked off when reporting
- * information to userspace.
- */
- - inode->i_mode = S_IFREG | S_IRUSR | S_IWUSR;
- + inode->i_mode = S_IRUSR | S_IWUSR;
- inode->i_uid = current_fsuid();
- inode->i_gid = current_fsgid();
- inode->i_flags |= S_PRIVATE | S_ANON_INODE;
Advertisement
Add Comment
Please, Sign In to add comment