diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2009-01-20 20:06:36 +0000 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2009-01-20 20:06:36 +0000 |
commit | 31647bd0c61851177b54771e0f14e19a15c7cc15 (patch) | |
tree | 2e6b81945c1a07c0226630b0e5e93f90dec0d4cb /package/mtd/mtd-utils/mtd-utils-1.1.0-all-mkfs.jffs2-device_table-fix.patch | |
parent | 40e98127deb08683407bba55407e7adde14843a2 (diff) | |
download | buildroot-novena-31647bd0c61851177b54771e0f14e19a15c7cc15.tar.gz buildroot-novena-31647bd0c61851177b54771e0f14e19a15c7cc15.zip |
mtd/mtd-utils: mkfs.jffs2: fix device_table handling
Diffstat (limited to 'package/mtd/mtd-utils/mtd-utils-1.1.0-all-mkfs.jffs2-device_table-fix.patch')
-rw-r--r-- | package/mtd/mtd-utils/mtd-utils-1.1.0-all-mkfs.jffs2-device_table-fix.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/package/mtd/mtd-utils/mtd-utils-1.1.0-all-mkfs.jffs2-device_table-fix.patch b/package/mtd/mtd-utils/mtd-utils-1.1.0-all-mkfs.jffs2-device_table-fix.patch new file mode 100644 index 000000000..1fe23c8c0 --- /dev/null +++ b/package/mtd/mtd-utils/mtd-utils-1.1.0-all-mkfs.jffs2-device_table-fix.patch @@ -0,0 +1,23 @@ +mkfs.jffs2.c: fix device_table handling + +find_filesystem_entry would ignore device_table entries for existing elements +if the device type / permissions weren't exactly the same, effectively +rendering device_table useless. +--- + mkfs.jffs2.c | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +Index: mtd-utils-1.1.0/mkfs.jffs2.c +=================================================================== +--- mtd-utils-1.1.0.orig/mkfs.jffs2.c ++++ mtd-utils-1.1.0/mkfs.jffs2.c +@@ -246,8 +246,7 @@ + e = dir->files; + } + while (e) { +- /* Only bother to do the expensive strcmp on matching file types */ +- if (type == (e->sb.st_mode & S_IFMT)) { ++ if (1) { + if (S_ISDIR(e->sb.st_mode)) { + int len = strlen(e->fullname); + |