Guest User

Untitled

a guest
Jun 29th, 2025
1,545
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. diff --git a/fs/libfs.c b/fs/libfs.c
  2. index e28da9574a65..e9e348c09021 100644
  3. --- a/fs/libfs.c
  4. +++ b/fs/libfs.c
  5. @@ -1653,7 +1653,7 @@ struct inode *alloc_anon_inode(struct super_block *s)
  6. * regular files but S_IFREG is masked off when reporting
  7. * information to userspace.
  8. */
  9. - inode->i_mode = S_IFREG | S_IRUSR | S_IWUSR;
  10. + inode->i_mode = S_IRUSR | S_IWUSR;
  11. inode->i_uid = current_fsuid();
  12. inode->i_gid = current_fsgid();
  13. inode->i_flags |= S_PRIVATE | S_ANON_INODE;
Advertisement
Add Comment
Please, Sign In to add comment