]> git.ipfire.org Git - pakfire.git/commit
file: Truncate file before rewriting it
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 14 Sep 2023 11:49:57 +0000 (11:49 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 14 Sep 2023 11:49:57 +0000 (11:49 +0000)
commit740a36689ae6b89ec7e6fe32f8e83499acb996e6
treea16c5eed976d7835753f04fc3a47a6fcee47c47e
parent75d016f6a8f4e2c0af5ea85b07c8e29eb939dd71
file: Truncate file before rewriting it

It can happen that the file is shorter after we have fixed the
interpreter, which causes that the remaining data is still in the file.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/file.c