gtk+ r20303 - in trunk: . gtk



Author: tml
Date: Tue Jun  3 11:04:33 2008
New Revision: 20303
URL: http://svn.gnome.org/viewvc/gtk+?rev=20303&view=rev

Log:
2008-06-03  Tor Lillqvist  <tml novell com>

	* gtk/updateiconcache.c (build_cache): Use g_open().



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

Modified: trunk/gtk/updateiconcache.c
==============================================================================
--- trunk/gtk/updateiconcache.c	(original)
+++ trunk/gtk/updateiconcache.c	Tue Jun  3 11:04:33 2008
@@ -1449,7 +1449,7 @@
 
   tmp_cache_path = g_build_filename (path, "."CACHE_NAME, NULL);
 
-  if ((fd = open (tmp_cache_path, O_WRONLY | O_CREAT | O_EXCL | O_TRUNC | _O_BINARY, mode)) == -1)
+  if ((fd = g_open (tmp_cache_path, O_WRONLY | O_CREAT | O_EXCL | O_TRUNC | _O_BINARY, mode)) == -1)
     {
       g_printerr (_("Failed to open file %s : %s\n"), tmp_cache_path, g_strerror (errno));
       exit (1);



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