mtd-utils-1.1.0-all-mkfs.jffs2-device_table-fix.patch 730 B

1234567891011121314151617181920212223
  1. mkfs.jffs2.c: fix device_table handling
  2. find_filesystem_entry would ignore device_table entries for existing elements
  3. if the device type / permissions weren't exactly the same, effectively
  4. rendering device_table useless.
  5. ---
  6. mkfs.jffs2.c | 3 +--
  7. 1 file changed, 1 insertion(+), 2 deletions(-)
  8. Index: mtd-utils-1.1.0/mkfs.jffs2.c
  9. ===================================================================
  10. --- mtd-utils-1.1.0.orig/mkfs.jffs2.c
  11. +++ mtd-utils-1.1.0/mkfs.jffs2.c
  12. @@ -246,8 +246,7 @@
  13. e = dir->files;
  14. }
  15. while (e) {
  16. - /* Only bother to do the expensive strcmp on matching file types */
  17. - if (type == (e->sb.st_mode & S_IFMT)) {
  18. + if (1) {
  19. if (S_ISDIR(e->sb.st_mode)) {
  20. int len = strlen(e->fullname);