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)
commitfae49303a473b1884b1e009bb203d394b1839f77
tree09b12c533c55b8a667b08101a98477c33429186a
parentda61f7b079e6e0d930875ba764f557f5637c05c8
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)

SVN-Revision: 12667
tools/firmware-utils/src/add_header.c
tools/firmware-utils/src/motorola-bin.c
tools/firmware-utils/src/ptgen.c