I traced the issue back to closedir() being called with the 'path' variable
rather than the 'dir' variable, as returned from opendir().
Applying the following patch fixes the issue:
Index: mkyaffs2.c
===================================================================
--- mkyaffs2.c (revision 10)
+++ mkyaffs2.c (working copy)
@@ -584,12 +584,12 @@
error:
if (retval) {
fprintf(stderr, "error while parsing %s\n", fpath);
- closedir(path);
+ closedir(dir);
return -1;
}
}
- closedir(path);
+ closedir(dir);
return 0;
}
Original issue reported on code.google.com by HIGH...@gmail.com on 14 Dec 2010 at 12:13
Original issue reported on code.google.com by
HIGH...@gmail.com
on 14 Dec 2010 at 12:13