Save files with permissions of 0700 instead of 0755

This commit is contained in:
Enrico Tröger 2008-11-16 00:21:22 +01:00 committed by Christian Dywan
parent e019c677bb
commit 744f9ce56f
2 changed files with 4 additions and 4 deletions

View file

@ -139,7 +139,7 @@ katze_net_get_cached_path (KatzeNet* net,
cache_path = g_build_filename (net->cache_path, subfolder, NULL); cache_path = g_build_filename (net->cache_path, subfolder, NULL);
else else
cache_path = net->cache_path; 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) #if GLIB_CHECK_VERSION (2, 16, 0)
checksum = g_compute_checksum_for_string (G_CHECKSUM_MD5, uri, -1); checksum = g_compute_checksum_for_string (G_CHECKSUM_MD5, uri, -1);
#else #else

View file

@ -1012,7 +1012,7 @@ midori_browser_session_cb (MidoriBrowser* browser,
config_path = g_build_filename (g_get_user_config_dir (), config_path = g_build_filename (g_get_user_config_dir (),
PACKAGE_NAME, NULL); 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); config_file = g_build_filename (config_path, "session.xbel", NULL);
error = NULL; error = NULL;
if (!katze_array_to_file (session, config_file, &error)) if (!katze_array_to_file (session, config_file, &error))
@ -1160,7 +1160,7 @@ main (int argc,
GString* error_messages = g_string_new (NULL); GString* error_messages = g_string_new (NULL);
gchar* config_path = g_build_filename (g_get_user_config_dir (), gchar* config_path = g_build_filename (g_get_user_config_dir (),
PACKAGE_NAME, NULL); 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); gchar* config_file = g_build_filename (config_path, "config", NULL);
error = NULL; error = NULL;
MidoriWebSettings* settings = settings_new_from_file (config_file); MidoriWebSettings* settings = settings_new_from_file (config_file);
@ -1387,7 +1387,7 @@ main (int argc,
/* Save configuration files */ /* Save configuration files */
config_path = g_build_filename (g_get_user_config_dir (), PACKAGE_NAME, config_path = g_build_filename (g_get_user_config_dir (), PACKAGE_NAME,
NULL); NULL);
g_mkdir_with_parents (config_path, 0755); g_mkdir_with_parents (config_path, 0700);
g_object_unref (history); g_object_unref (history);
#ifdef HAVE_SQLITE #ifdef HAVE_SQLITE
g_object_get (settings, "maximum-history-age", &max_history_age, NULL); g_object_get (settings, "maximum-history-age", &max_history_age, NULL);