diff options
author | Michael Lauer <mickey@vanille-media.de> | 2005-01-31 20:40:11 +0000 |
---|---|---|
committer | Michael Lauer <mickey@vanille-media.de> | 2005-01-31 20:40:11 +0000 |
commit | 1b237c0bf37ccdf12e24a35968070d567410b24c (patch) | |
tree | a3c36ac6dcf4233a07c8172d79291610ed6a7398 /packages/mtd/mtd-utils | |
parent | 81637ac86fb90de17411768a060d22b94a201cf3 (diff) |
fix mkfs.jffs2 SIGSEGV when using -I more than once
BKrev: 41fe97abGoNDh0S5ekRVC_piyj2F9w
Diffstat (limited to 'packages/mtd/mtd-utils')
-rw-r--r-- | packages/mtd/mtd-utils/add-exclusion-to-mkfs-jffs2.patch | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/mtd/mtd-utils/add-exclusion-to-mkfs-jffs2.patch b/packages/mtd/mtd-utils/add-exclusion-to-mkfs-jffs2.patch index 05af81e283..e6bb48c9e0 100644 --- a/packages/mtd/mtd-utils/add-exclusion-to-mkfs-jffs2.patch +++ b/packages/mtd/mtd-utils/add-exclusion-to-mkfs-jffs2.patch @@ -3,7 +3,7 @@ # Patch managed by http://www.holgerschurig.de/patcher.html # ---- mtd/util/mkfs.jffs2.c~add-exclusion-to-mkfs-jffs2.patch +--- mtd/util/mkfs.jffs2.c~add-exclusion-to-mkfs-jffs2 +++ mtd/util/mkfs.jffs2.c @@ -92,7 +92,12 @@ struct filesystem_entry *files; /* Only relevant to directories */ @@ -72,12 +72,13 @@ { switch (opt) { case 'D': -@@ -1376,6 +1394,27 @@ +@@ -1376,6 +1394,28 @@ page_size = strtol(optarg, NULL, 0); break; + case 'I': + printf( "Note: Adding '%s' to ignore Path\n", optarg ); ++ element = ignorepath; + if ( !ignorepath ) { + ignorepath = xmalloc( sizeof( struct ignorepath_entry ) ); + ignorepath->next = 0; @@ -89,7 +90,7 @@ + strcpy( &element->next->name[0], optarg ); + } + printf( "--------- Dumping ignore path list ----------------\n" ); -+ element=ignorepath; ++ element = ignorepath; + while ( element ) { + printf( " * '%s'\n", &element->name[0] ); + element = element->next; |