mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Use g_mkdtemp instead of mkdtemp
Prefer the GLib version to the one from gnulib. Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
@@ -709,14 +709,14 @@ int qemuTestDriverInit(virQEMUDriver *driver)
|
||||
driver->config->libDir = g_strdup("/tmp/lib");
|
||||
driver->config->channelTargetDir = g_strdup("/tmp/channel");
|
||||
|
||||
if (!mkdtemp(statedir)) {
|
||||
if (!g_mkdtemp(statedir)) {
|
||||
virFilePrintf(stderr, "Cannot create fake stateDir");
|
||||
goto error;
|
||||
}
|
||||
|
||||
driver->config->stateDir = g_strdup(statedir);
|
||||
|
||||
if (!mkdtemp(configdir)) {
|
||||
if (!g_mkdtemp(configdir)) {
|
||||
virFilePrintf(stderr, "Cannot create fake configDir");
|
||||
goto error;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user