]> spindle.queued.net Git - midori/commitdiff
Ensure temporary folder before viewing source
authorChristian Dywan <christian@twotoasts.de>
Fri, 31 Aug 2012 19:56:08 +0000 (21:56 +0200)
committerChristian Dywan <christian@twotoasts.de>
Fri, 31 Aug 2012 20:02:15 +0000 (22:02 +0200)
midori/midori-view.c

index 893d0b36796543335fcec2d920ce3dc31652676e..190d273b82df45c45a39331ba4e068b77d6cfab2 100644 (file)
@@ -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