a0f43d8 virSecurityDACSetOwnershipInternal: Don't chown so often

Authored and Committed by mprivozn 8 years ago
    virSecurityDACSetOwnershipInternal: Don't chown so often
    
    It's better if we stat() file that we are about to chown() at
    first and check if there's something we need to change. Not that
    it would make much difference, but for the upcoming patches we
    need to be doing stat() anyway. Moreover, if we do things this
    way, we can drop @chown_errno variable which will become
    redundant.
    
    Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
    
        
file modified
+13 -17