projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
package/kernel: add dependency on kmod-lib-lzo to kmod-fs-btrfs
[openwrt.git]
/
package
/
mtd
/
src
/
mtd.c
diff --git
a/package/mtd/src/mtd.c
b/package/mtd/src/mtd.c
index
8b87bad
..
b335826
100644
(file)
--- a/
package/mtd/src/mtd.c
+++ b/
package/mtd/src/mtd.c
@@
-409,6
+409,9
@@
resume:
/* got an EOF marker - this is the place to add some jffs2 data */
skip = mtd_replace_jffs2(mtd, fd, e, jffs2file);
/* got an EOF marker - this is the place to add some jffs2 data */
skip = mtd_replace_jffs2(mtd, fd, e, jffs2file);
+ /* don't add it again */
+ jffs2file = NULL;
+
w += skip;
e += skip;
skip -= buflen;
w += skip;
e += skip;
skip -= buflen;
@@
-597,8
+600,8
@@
int main (int argc, char **argv)
jffs2dir = optarg;
break;
case 'o':
jffs2dir = optarg;
break;
case 'o':
- if (!mtd_fixtrx) {
-
fprintf(stderr, "-o: Only for brcm47xx/brcm63xx
\n");
+
if (!mtd_fixtrx) {
+
fprintf(stderr, "-o: is not available on this platform
\n");
usage();
}
errno = 0;
usage();
}
errno = 0;
This page took
0.022652 seconds
and
4
git commands to generate.