Commit 0cb1ebc9 authored by Andrew Walton's avatar Andrew Walton Committed by Andrew Walton

Use g_mkstemp() instead of mkstemp(). Pointed out by Paolo Borelli.

2009-01-22  A. Walton  <awalton@gnome.org>

	* libnautilus-private/nautilus-file-utilities.c
	(nautilus_unique_temporary_file_name):
	* libnautilus-private/nautilus-metafile.c (metafile_write_local):
	Use g_mkstemp() instead of mkstemp(). Pointed out by Paolo Borelli.


svn path=/trunk/; revision=14879
parent 9a427f5b
2009-01-22 A. Walton <awalton@gnome.org>
* libnautilus-private/nautilus-file-utilities.c
(nautilus_unique_temporary_file_name):
* libnautilus-private/nautilus-metafile.c (metafile_write_local):
Use g_mkstemp() instead of mkstemp(). Pointed out by Paolo Borelli.
2009-01-22 Paolo Borelli <pborelli@katamail.com>
* eel/eel-gtk-extensions.[ch]: add utility function
......
2009-01-22 A. Walton <awalton@gnome.org>
* eel-debug-drawing.c (eel_debug_show_pixbuf_in_external_viewer):
Use g_mkstemp() instead of mkstemp(). Pointed out by Paolo Borelli.
2009-01-21 A. Walton <awalton@gnome.org>
* eel-debug-drawing.c (eel_debug_show_pixbuf_in_external_viewer):
......
......@@ -292,7 +292,7 @@ eel_debug_show_pixbuf_in_external_viewer (const GdkPixbuf *pixbuf,
file_name = g_strdup ("/tmp/eel-debug-png-file-XXXXXX");
fd = mkstemp (file_name);
fd = g_mkstemp (file_name);
if (fd == -1) {
g_free (file_name);
file_name = g_strdup_printf ("/tmp/isis-debug-png-file-%d", getpid ());
......
......@@ -812,7 +812,7 @@ nautilus_unique_temporary_file_name (void)
file_name = g_strdup_printf ("%sXXXXXX", prefix);
fd = mkstemp (file_name);
fd = g_mkstemp (file_name);
if (fd == -1) {
g_free (file_name);
file_name = NULL;
......
......@@ -1917,7 +1917,7 @@ metafile_write_local (NautilusMetafile *metafile,
temp_path = g_strconcat (metafile_path, "XXXXXX", NULL);
failed = FALSE;
fd = mkstemp (temp_path);
fd = g_mkstemp (temp_path);
if (fd == -1) {
failed = TRUE;
}
......
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