Signed-off-by: Laine Stump <laine@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
const char *progname,
char **pidfile)
{
- g_autofree char *rundir = NULL;
-
if (privileged) {
/*
* This is here just to allow calling this function with
}
*pidfile = g_strdup_printf("%s/%s.pid", runstatedir, progname);
} else {
- rundir = virGetUserRuntimeDirectory();
+ g_autofree char *rundir = virGetUserRuntimeDirectory();
if (g_mkdir_with_parents(rundir, 0700) < 0) {
virReportSystemError(errno,