]> git.ipfire.org Git - thirdparty/libvirt.git/commit
vsh: Add helper for auto-removing temporary file
authorPeter Krempa <pkrempa@redhat.com>
Tue, 1 Mar 2022 16:00:56 +0000 (17:00 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 3 Mar 2022 10:06:56 +0000 (11:06 +0100)
commit8c35dcf9fc3f21e560c659e1567e35e990e43ac6
tree22face69cb30679bd141b4736d4bddd3482f9dcd
parenta3ef5414ed8f0f97241d4ea852c6f8463d16e663
vsh: Add helper for auto-removing temporary file

The vsh helpers for user-editing of contents use temporary files.
Introduce 'vshTempFile' type which automatically removes the file.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tools/vsh.c
tools/vsh.h