A C implementation of the Trusted Transit protocol for securing Internet of Things (IoT) network traffic. Created to support the Xaptum Edge Network Fabric, an IoT Network Solution.
The xtt_save_to_file function does not use the O_TRUNC flag when opening a file. Consequently, if the new contents are shorter than the old contents, the tail of the old contents remains at the end of the file.
The
xtt_save_to_file
function does not use theO_TRUNC
flag when opening a file. Consequently, if the new contents are shorter than the old contents, the tail of the old contents remains at the end of the file.