[eog] When generating the settings directory also create it's parents



commit fd8fac07cfc426d4b419155874e2417c118de92f
Author: Felix Riemann <friemann gnome org>
Date:   Sun May 9 14:37:00 2010 +0200

    When generating the settings directory also create it's parents
    
    Fixes warnings and unsaved toolbars when ~/.gnome2 does not exists yet.
    Also set the directory permissions less permissive by default.
    See: http://mail.gnome.org/archives/eog-list/2010-May/msg00003.html

 src/eog-util.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/eog-util.c b/src/eog-util.c
index 62d4087..a16e3a2 100644
--- a/src/eog-util.c
+++ b/src/eog-util.c
@@ -238,7 +238,7 @@ ensure_dir_exists (const char *dir)
 	if (g_file_test (dir, G_FILE_TEST_IS_DIR))
 		return TRUE;
 
-	if (g_mkdir (dir, 488) == 0)
+	if (g_mkdir_with_parents (dir, 0700) == 0)
 		return TRUE;
 
 	if (errno == EEXIST)



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