firmware-utils: when using open with O_CREAT and O_WRONLY, also use O_TRUNC to ensure...