[gnome-settings-daemon] sound: Make directories with mode 0700, not 0600



commit b97a62f56d7f3187c9ab516c8f3c2aa6785665c6
Author: Colin Walters <walters verbum org>
Date:   Wed Feb 20 09:47:59 2013 -0500

    sound: Make directories with mode 0700, not 0600
    
    Otherwise spectacular failure occurs if the sound plugin wins the race
    to make ~/.local and it ends up with 0600, which nothing can write to.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=694134

 plugins/sound/gsd-sound-manager.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/sound/gsd-sound-manager.c b/plugins/sound/gsd-sound-manager.c
index a3c7704..a488d3b 100644
--- a/plugins/sound/gsd-sound-manager.c
+++ b/plugins/sound/gsd-sound-manager.c
@@ -268,7 +268,7 @@ gsd_sound_manager_start (GsdSoundManager *manager,
         /* ... and we listen to changes of the theme base directories
          * in $HOME ...*/
         p = g_build_filename (g_get_user_data_dir (), "sounds", NULL);
-        if (g_mkdir_with_parents(p, 0600) == 0)
+        if (g_mkdir_with_parents(p, 0700) == 0)
                 register_directory_callback (manager, p, NULL);
         g_free (p);
 


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