From: Christian Dywan Date: Fri, 31 Aug 2012 19:56:08 +0000 (+0200) Subject: Ensure temporary folder before viewing source X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b955713b4e343efe4fba8617de46366313b3ae5e;p=midori Ensure temporary folder before viewing source --- diff --git a/midori/midori-view.c b/midori/midori-view.c index 893d0b36..190d273b 100644 --- a/midori/midori-view.c +++ b/midori/midori-view.c @@ -5673,6 +5673,7 @@ midori_view_save_source (MidoriView* view, unique_filename = g_strdup_printf ("%s/%uXXXXXX%s", midori_paths_get_tmp_dir (), g_str_hash (uri), midori_view_fallback_extension (view, extension)); g_free (extension); + katze_mkdir_with_parents (midori_paths_get_tmp_dir (), 0700); fd = g_mkstemp (unique_filename); } else