mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
fix rootfs split partition renaming (fix by Eric L. Chen)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8081 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
a69c1431a5
commit
b1f5fffa5d
@ -252,8 +252,8 @@ Index: linux/drivers/mtd/mtdpart.c
|
||||
+ goto out;
|
||||
+ }
|
||||
+
|
||||
+ part->name = (unsigned char *)&part[1];
|
||||
+ memcpy(part, old, sizeof(*part));
|
||||
+ part->name = (unsigned char *)&part[1];
|
||||
+ strcpy(part->name, ROOTFS_SPLIT_NAME);
|
||||
+
|
||||
+ len = (u32) sb->bytes_used;
|
||||
|
||||
@ -253,8 +253,8 @@ Index: linux/drivers/mtd/mtdpart.c
|
||||
+ goto out;
|
||||
+ }
|
||||
+
|
||||
+ part->name = (unsigned char *)&part[1];
|
||||
+ memcpy(part, old, sizeof(*part));
|
||||
+ part->name = (unsigned char *)&part[1];
|
||||
+ strcpy(part->name, ROOTFS_SPLIT_NAME);
|
||||
+
|
||||
+ len = (u32) sb->bytes_used;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user