Commit 924f9ecf authored by Victor Ananjevsky's avatar Victor Ananjevsky

fixed permissions of file`s thumbnails

parent 85224bd0
...@@ -207,18 +207,19 @@ update_preview (GtkFileChooser * chooser, GtkWidget *p) ...@@ -207,18 +207,19 @@ update_preview (GtkFileChooser * chooser, GtkWidget *p)
/* save thumbnail */ /* save thumbnail */
if (options.common_data.large_preview) if (options.common_data.large_preview)
{ {
g_mkdir_with_parents (large_path, 0755); g_mkdir_with_parents (large_path, 0700);
file = g_strdup_printf ("%s/%s.png", large_path, g_checksum_get_string (chs)); file = g_strdup_printf ("%s/%s.png", large_path, g_checksum_get_string (chs));
} }
else else
{ {
g_mkdir_with_parents (normal_path, 0755); g_mkdir_with_parents (normal_path, 0700);
file = g_strdup_printf ("%s/%s.png", normal_path, g_checksum_get_string (chs)); file = g_strdup_printf ("%s/%s.png", normal_path, g_checksum_get_string (chs));
} }
gdk_pixbuf_save (pb, file, "png", NULL, gdk_pixbuf_save (pb, file, "png", NULL,
"tEXt::Thumb::URI", uri, "tEXt::Thumb::URI", uri,
"tEXt::Thumb::MTime", smtime, "tEXt::Thumb::MTime", smtime,
NULL); NULL);
g_chmod (file, 0600);
g_free (smtime); g_free (smtime);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment