]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virSecurityDACSetOwnershipInternal: Drop dead code
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 3 Jun 2021 12:33:00 +0000 (14:33 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 17 Jun 2021 13:49:02 +0000 (15:49 +0200)
commit5cfb3369b18a7964b43114e60bc9ae5d5166c593
tree4c55866fe996cf695d4ef47f097159a4b5d54476
parent4ac78b95d3f539f5121790a04761593c2711233c
virSecurityDACSetOwnershipInternal: Drop dead code

The virSecurityDACSetOwnershipInternal() function accepts two
arguments (among others): @path and @src. The idea being that in
some cases @path is NULL and @src is not and then @path is filled
from @src->path. However, this is done in both callers already
(because of seclabel remembering/recall). Therefore, this code in
virSecurityDACSetOwnershipInternal() is dead, effectively.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/security/security_dac.c