firmware-utils: when using open with O_CREAT and O_WRONLY, also use O_TRUNC to ensure...
commit0fec406e38588bb995ad8e5c2b73b3725cfd7f5c
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 23 Sep 2008 16:12:40 +0000 (23 16:12 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 23 Sep 2008 16:12:40 +0000 (23 16:12 +0000)
tree09b12c533c55b8a667b08101a98477c33429186a
parent82864f6ee6cdbeb9a444dc4a1e7d2ebf06b98d66
firmware-utils: when using open with O_CREAT and O_WRONLY, also use O_TRUNC to ensure that overwritten files have the right size (fixes #3505)

git-svn-id: https://svn.openwrt.org/openwrt/trunk@12667 3c298f89-4303-0410-b956-a3cf2f4a3e73
tools/firmware-utils/src/add_header.c
tools/firmware-utils/src/motorola-bin.c
tools/firmware-utils/src/ptgen.c