We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7832e12 commit 44b4494Copy full SHA for 44b4494
fs/ntfs3/super.c
@@ -1548,11 +1548,12 @@ static int ntfs_fill_super(struct super_block *sb, struct fs_context *fc)
1548
/* Create /proc/fs/ntfs3/.. */
1549
if (proc_info_root) {
1550
struct proc_dir_entry *e = proc_mkdir(sb->s_id, proc_info_root);
1551
+ static_assert((S_IRUGO | S_IWUSR) == 0644);
1552
if (e) {
- proc_create_data("volinfo", S_IFREG | S_IRUGO, e,
1553
+ proc_create_data("volinfo", S_IRUGO, e,
1554
&ntfs3_volinfo_fops, sb);
- proc_create_data("label", S_IFREG | S_IRUGO | S_IWUGO,
1555
- e, &ntfs3_label_fops, sb);
+ proc_create_data("label", S_IRUGO | S_IWUSR, e,
1556
+ &ntfs3_label_fops, sb);
1557
sbi->procdir = e;
1558
}
1559
0 commit comments