summarylogtreecommitdiffstats
path: root/xdg_config_dir_permissions.patch
blob: a4a67656b73754048a500100cd05740d999f299d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From 0f3c23f0d752af1eff7dec7ca95143e4b4f1eb97 Mon Sep 17 00:00:00 2001
From: gnome-mpv <gnome-mpv@nowhere>
Date: Mon, 23 Oct 2017 09:43:36 -0700
Subject: [PATCH] application: Change the default permission for config dirs to
 755

Fixes #319.
---
 src/gmpv_application.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/gmpv_application.c b/src/gmpv_application.c
index aa90827..d9f425e 100644
--- a/src/gmpv_application.c
+++ b/src/gmpv_application.c
@@ -156,9 +156,9 @@ static void create_dirs()
 	gchar *scripts_dir = get_scripts_dir_path();
 	gchar *watch_dir = get_watch_dir_path();
 
-	g_mkdir_with_parents(config_dir, 0600);
-	g_mkdir_with_parents(scripts_dir, 0700);
-	g_mkdir_with_parents(watch_dir, 0600);
+	g_mkdir_with_parents(config_dir, 0755);
+	g_mkdir_with_parents(scripts_dir, 0755);
+	g_mkdir_with_parents(watch_dir, 0755);
 
 	g_free(config_dir);
 	g_free(scripts_dir);