gtk+ r21028 - in trunk: . gtk



Author: ebassi
Date: Thu Aug  7 00:54:01 2008
New Revision: 21028
URL: http://svn.gnome.org/viewvc/gtk+?rev=21028&view=rev

Log:
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)

Modified:
   trunk/ChangeLog
   trunk/gtk/gtkrecentmanager.c

Modified: trunk/gtk/gtkrecentmanager.c
==============================================================================
--- trunk/gtk/gtkrecentmanager.c	(original)
+++ trunk/gtk/gtkrecentmanager.c	Thu Aug  7 00:54:01 2008
@@ -416,6 +416,14 @@
 	  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;
     }



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