firmware-utils: when using open with O_CREAT and O_WRONLY, also use O_TRUNC to ensure...
authorFelix Fietkau <nbd@openwrt.org>
Tue, 23 Sep 2008 16:12:40 +0000 (16:12 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 23 Sep 2008 16:12:40 +0000 (16:12 +0000)
commit0524ab859029bcc02e642d6d9ba13cdf464bc499
tree09b12c533c55b8a667b08101a98477c33429186a
parent35fb42beaaaddababe78fe1e97fa730a35aef423
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: svn://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