diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2008-08-07 00:54:01 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@src.gnome.org> | 2008-08-07 00:54:01 +0000 |
commit | 66459b25028f9e879f8bda15f9a9a51f41f27b75 (patch) | |
tree | 27cebe7ab8f3fcce9c710f1d04a323dfea39ff17 /gtk | |
parent | b320cadc814cebddefff5b712eef4dec09d7bd9e (diff) | |
download | gtk+-66459b25028f9e879f8bda15f9a9a51f41f27b75.tar.gz |
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
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtkrecentmanager.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gtk/gtkrecentmanager.c b/gtk/gtkrecentmanager.c index c7ee3b3280..317b3d5f5e 100644 --- a/gtk/gtkrecentmanager.c +++ b/gtk/gtkrecentmanager.c @@ -416,6 +416,14 @@ gtk_recent_manager_real_changed (GtkRecentManager *manager) 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 */ priv->is_dirty = FALSE; } |