Use g_open().

2008-06-03  Tor Lillqvist  <tml@novell.com>

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


svn path=/trunk/; revision=20303
This commit is contained in:
Tor Lillqvist 2008-06-03 11:04:33 +00:00 committed by Tor Lillqvist
parent 54d9b40015
commit 727a9145f6
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2008-06-03 Tor Lillqvist <tml@novell.com>
* gtk/updateiconcache.c (build_cache): Use g_open().
2008-06-03 Michael Natterer <mitch@imendio.com>
* gtk/gtkclist.h

View File

@ -1449,7 +1449,7 @@ build_cache (const gchar *path)
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);