]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: tools: add a function to load a file into a tar archive
authorWilly Tarreau <w@1wt.eu>
Wed, 18 Mar 2026 09:28:16 +0000 (10:28 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 18 Mar 2026 14:30:39 +0000 (15:30 +0100)
commit94a4578ccfe8a8a4976c40ff2ced8283d999df4e
tree9e82c83619da963d95b34bee394fe4a60bccc8a3
parentc1dfea3ab3283b712240256b704c442b5b96d42c
MINOR: tools: add a function to load a file into a tar archive

New function load_file_into_tar() concatenates a file into an in-memory
tar archive and grows its size. Only the base name and a provided prefix
are used to name the faile. If the file cannot be loaded, it's added as
size zero and permissions 0 to show that it failed to load. This will
be used to load post-mortem information so it needs to remain simple.
include/haproxy/tools.h
src/tools.c