• M
    util: Introduce virFileRewriteStr · b9b664c5
    Michal Privoznik 提交于
    There are couple of places where we have a string and want to
    save it to a file. Atomically. In all those places we use
    virFileRewrite() but also implement the very same callback which
    takes the string and write it into temp file. This makes no
    sense. Unify the callbacks and move them to one place.
    Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
    b9b664c5
virxml.c 33.3 KB