Commit 66459b25 authored by Emmanuele Bassi's avatar Emmanuele Bassi Committed by Emmanuele Bassi

Bug 545031 – list of recently used files is created world-readable

2008-08-07  Emmanuele Bassi  <ebassi@gnome.org>

	Bug 545031 – list of recently used files is created world-readable

	* gtk/gtkrecentmanager.c:
	(gtk_recent_manager_real_changed): Set the recently-used.xbel
	file to 0600. (Guido Berhoerster)

svn path=/trunk/; revision=21028
parent b320cadc
2008-08-07 Emmanuele Bassi <ebassi@gnome.org>
Bug 545031 – list of recently used files is created world-readable
* gtk/gtkrecentmanager.c:
(gtk_recent_manager_real_changed): Set the recently-used.xbel
file to 0600. (Guido Berhoerster)
2008-08-06 Michael Natterer <mitch@imendio.com> 2008-08-06 Michael Natterer <mitch@imendio.com>
* modules/printbackends/cups/gtkcupsutils.c * modules/printbackends/cups/gtkcupsutils.c
......
...@@ -416,6 +416,14 @@ gtk_recent_manager_real_changed (GtkRecentManager *manager) ...@@ -416,6 +416,14 @@ gtk_recent_manager_real_changed (GtkRecentManager *manager)
g_error_free (write_error); g_error_free (write_error);
} }
if (g_chmod (priv->filename, 0600) < 0)
{
filename_warning ("Attempting to set the permissions of `%s', "
"but failed: %s",
priv->filename,
g_strerror (errno));
}
/* mark us as clean */ /* mark us as clean */
priv->is_dirty = FALSE; priv->is_dirty = FALSE;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment