#include "cpu/cpu.h"
#include "datatypes.h"
-#include "dirname.h"
#include "virlog.h"
#include "virerror.h"
#include "viralloc.h"
unsigned int hostdev_flags = 0;
size_t nnicindexes = 0;
int *nicindexes = NULL;
- char *tmppath = NULL, *tmpdirpath = NULL;
+ char *tmppath = NULL;
VIR_DEBUG("vm=%p name=%s id=%d asyncJob=%d migrateFrom=%s stdin_fd=%d "
"stdin_path=%s snapshot=%p vmop=%d flags=0x%x",
if (virFileMakePath(tmppath) < 0)
goto cleanup;
- if (!(tmpdirpath = mdir_name(tmppath)))
- goto cleanup;
-
if (virSecurityManagerDomainSetDirLabel(driver->securityManager,
- vm->def, tmpdirpath) < 0)
+ vm->def, tmppath) < 0)
goto cleanup;
VIR_FREE(tmppath);
- VIR_FREE(tmpdirpath);
if (virAsprintf(&tmppath, "%s/domain-%s",
cfg->channelTargetDir, vm->def->name) < 0)
if (virFileMakePath(tmppath) < 0)
goto cleanup;
- if (!(tmpdirpath = mdir_name(tmppath)))
- goto cleanup;
-
if (virSecurityManagerDomainSetDirLabel(driver->securityManager,
- vm->def, tmpdirpath) < 0)
+ vm->def, tmppath) < 0)
goto cleanup;
- VIR_FREE(tmpdirpath);
VIR_FREE(tmppath);
/* now that we know it is about to start call the hook if present */
* if we failed to initialize the now running VM. kill it off and
* pretend we never started it */
VIR_FREE(tmppath);
- VIR_FREE(tmpdirpath);
VIR_FREE(nodeset);
virCommandFree(cmd);
VIR_FORCE_CLOSE(logfile);