[gtk] inspector: Fix css autosave



commit b39d0cec3c03c486d3f463fc4594a875c56ba1fc
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Apr 11 19:16:07 2019 -0400

    inspector: Fix css autosave
    
    We were creating the directory with improper permissions.

 gtk/inspector/css-editor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/inspector/css-editor.c b/gtk/inspector/css-editor.c
index d8d11efa9e..e28eb8acb6 100644
--- a/gtk/inspector/css-editor.c
+++ b/gtk/inspector/css-editor.c
@@ -144,7 +144,7 @@ autosave_contents (GtkInspectorCssEditor *ce)
   contents = gtk_text_buffer_get_text (GTK_TEXT_BUFFER (ce->priv->text), &start, &end, TRUE);
   autosave_file = get_autosave_path ();
   dir = g_path_get_dirname (autosave_file);
-  g_mkdir_with_parents (dir, 600);
+  g_mkdir_with_parents (dir, 0755);
   g_file_set_contents (autosave_file, contents, -1, NULL);
 
   g_free (dir);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]