projects
/
openwrt
/
staging
/
noltari.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6bca05d
)
add oleg's jffs2root fix
author
Felix Fietkau
<nbd@openwrt.org>
Wed, 4 May 2005 14:37:13 +0000
(14:37 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Wed, 4 May 2005 14:37:13 +0000
(14:37 +0000)
SVN-Revision: 800
openwrt/package/openwrt/jffs2root.c
patch
|
blob
|
history
diff --git
a/openwrt/package/openwrt/jffs2root.c
b/openwrt/package/openwrt/jffs2root.c
index d79532ea649e228d6e4dd145f591745aa685334f..140c8a6e087b6c0b1e93955d9512c8407f2f80f6 100644
(file)
--- a/
openwrt/package/openwrt/jffs2root.c
+++ b/
openwrt/package/openwrt/jffs2root.c
@@
-98,7
+98,7
@@
int main(int argc, char **argv)
//bzero((void *)((int)ptr + ptr->len), (size_t)(len - ptr->len));
ptr->len = offset;
ptr->crc32 = crc32buf((void *) &(ptr->flag_version), ptr->len - offsetof(struct trx_header, flag_version));
- msync(ptr,
len
,MS_SYNC|MS_INVALIDATE);
+ msync(ptr,
sizeof(struct trx_header)
,MS_SYNC|MS_INVALIDATE);
printf("Partition moved; please reboot\n");
}
} else {
@@
-113,6
+113,7
@@
int main(int argc, char **argv)
}
- munmap((void *) ptr, sizeof(struct trx_header));
+ munmap((void *) ptr, len);
+ close (fd);
return 0;
}