deploy: Ensure deploy dir is world readable

This commit is contained in:
Alexander Larsson
2016-05-11 13:55:33 +02:00
parent acc6f55425
commit 4f6a2d5cd7

View File

@@ -2547,7 +2547,7 @@ flatpak_dir_deploy (FlatpakDir *self,
tmp_dir_template = g_file_get_child (deploy_base, template);
tmp_dir_path = g_file_get_path (tmp_dir_template);
if (g_mkdtemp (tmp_dir_path) == NULL)
if (g_mkdtemp_full (tmp_dir_path, 0755) == NULL)
{
g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED, "Can't create deploy directory");
return FALSE;