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)
commit0c734f8fb340d5e562dcddbbde48f8deb40ae0ca
tree40dc085e325b976dff240334b173ece9c4c0f73a
parent7342e732072b6098d4ae3ed35f635ca3ce582b0f
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
src/add_header.c
src/motorola-bin.c
src/ptgen.c