From: Enrico Tröger Date: Sat, 15 Nov 2008 23:21:22 +0000 (+0100) Subject: Save files with permissions of 0700 instead of 0755 X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=744f9ce56fb8bcc337d69bc1957cbfc0a1872322;p=midori Save files with permissions of 0700 instead of 0755 --- diff --git a/katze/katze-net.c b/katze/katze-net.c index 9fa651e2..d1e88eee 100644 --- a/katze/katze-net.c +++ b/katze/katze-net.c @@ -139,7 +139,7 @@ katze_net_get_cached_path (KatzeNet* net, cache_path = g_build_filename (net->cache_path, subfolder, NULL); else cache_path = net->cache_path; - g_mkdir_with_parents (cache_path, 0755); + g_mkdir_with_parents (cache_path, 0700); #if GLIB_CHECK_VERSION (2, 16, 0) checksum = g_compute_checksum_for_string (G_CHECKSUM_MD5, uri, -1); #else diff --git a/midori/main.c b/midori/main.c index 8130ec09..2e994ac5 100644 --- a/midori/main.c +++ b/midori/main.c @@ -1012,7 +1012,7 @@ midori_browser_session_cb (MidoriBrowser* browser, config_path = g_build_filename (g_get_user_config_dir (), PACKAGE_NAME, NULL); - g_mkdir_with_parents (config_path, 0755); + g_mkdir_with_parents (config_path, 0700); config_file = g_build_filename (config_path, "session.xbel", NULL); error = NULL; if (!katze_array_to_file (session, config_file, &error)) @@ -1160,7 +1160,7 @@ main (int argc, GString* error_messages = g_string_new (NULL); gchar* config_path = g_build_filename (g_get_user_config_dir (), PACKAGE_NAME, NULL); - g_mkdir_with_parents (config_path, 0755); + g_mkdir_with_parents (config_path, 0700); gchar* config_file = g_build_filename (config_path, "config", NULL); error = NULL; MidoriWebSettings* settings = settings_new_from_file (config_file); @@ -1387,7 +1387,7 @@ main (int argc, /* Save configuration files */ config_path = g_build_filename (g_get_user_config_dir (), PACKAGE_NAME, NULL); - g_mkdir_with_parents (config_path, 0755); + g_mkdir_with_parents (config_path, 0700); g_object_unref (history); #ifdef HAVE_SQLITE g_object_get (settings, "maximum-history-age", &max_history_age, NULL);