mirror of
https://github.com/ostreedev/ostree.git
synced 2025-03-21 02:50:37 +03:00
core: Fix mkdtemp invocation
This commit is contained in:
parent
c436f8ac61
commit
a14ff0aeab
@ -1323,10 +1323,9 @@ ostree_create_temp_dir (GFile *dir,
|
||||
if (dir == NULL)
|
||||
dir = g_file_new_for_path (g_get_tmp_dir ());
|
||||
|
||||
template = g_strdup_printf ("%s/%s-XXXXXX-%s",
|
||||
template = g_strdup_printf ("%s/%s-XXXXXX",
|
||||
ot_gfile_get_path_cached (dir),
|
||||
prefix ? prefix : "tmp",
|
||||
suffix ? suffix : "tmp");
|
||||
prefix ? prefix : "tmp");
|
||||
|
||||
if (mkdtemp (template) == NULL)
|
||||
{
|
||||
|
@ -79,7 +79,6 @@ update_initramfs (const char *release,
|
||||
ot_lobj GFile *initramfs_tmp_file = NULL;
|
||||
ot_lobj GFileInfo *initramfs_tmp_info = NULL;
|
||||
|
||||
|
||||
if (!ostree_create_temp_dir (NULL, "ostree-initramfs", NULL, &tmpdir,
|
||||
cancellable, error))
|
||||
goto out;
|
||||
|
Loading…
x
Reference in New Issue
Block a user