]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_namespace: Properly report new files
authorMartin Kletzander <mkletzan@redhat.com>
Tue, 15 Oct 2024 12:51:00 +0000 (14:51 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Wed, 16 Oct 2024 13:07:10 +0000 (15:07 +0200)
commit26f249034d7238ef1fe5c7668b27b9cc95308948
tree968596f9e4e1bee3e3b441ffc7c5d526ea2e9220
parent2b19f4b82d245d2c50e46ebf954280d5ee17a0da
qemu_namespace: Properly report new files

Function qemuNamespaceMknodOne() is supposed to return 0 if the file did
not exist before this function.  If, however, the file existed, but was
removed and recreated by this function the @existed flag should be reset
to its proper state (false) because the function then behaves the same
way as if the file did not exist as it needed to be recreated.

So reset the @existed flag to properly reflect what happened.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/qemu/qemu_namespace.c