1 Index: linux-2.4.35.4/drivers/mtd/mtdchar.c
2 ===================================================================
3 --- linux-2.4.35.4.orig/drivers/mtd/mtdchar.c 2007-12-15 05:19:42.370835614 +0100
4 +++ linux-2.4.35.4/drivers/mtd/mtdchar.c 2007-12-15 05:19:50.539301109 +0100
6 sprintf(name, "%d", mtd->index);
7 devfs_rw_handle[mtd->index] = devfs_register(devfs_dir_handle, name,
8 DEVFS_FL_DEFAULT, MTD_CHAR_MAJOR, mtd->index*2,
9 - S_IFCHR | S_IRUGO | S_IWUGO,
10 + S_IFCHR | S_IRUSR | S_IWUSR,
13 sprintf(name, "%dro", mtd->index);
14 devfs_ro_handle[mtd->index] = devfs_register(devfs_dir_handle, name,
15 DEVFS_FL_DEFAULT, MTD_CHAR_MAJOR, mtd->index*2+1,
21 Index: linux-2.4.35.4/drivers/mtd/mtdblock.c
22 ===================================================================
23 --- linux-2.4.35.4.orig/drivers/mtd/mtdblock.c 2007-12-15 05:19:42.378836072 +0100
24 +++ linux-2.4.35.4/drivers/mtd/mtdblock.c 2007-12-15 05:19:50.539301109 +0100
26 sprintf(name, "%d", mtd->index);
27 devfs_rw_handle[mtd->index] = devfs_register(devfs_dir_handle, name,
28 DEVFS_FL_DEFAULT, MTD_BLOCK_MAJOR, mtd->index,
29 - S_IFBLK | S_IRUGO | S_IWUGO,
30 + S_IFBLK | S_IRUSR | S_IWUSR,