nautilus r14879 - in trunk: . eel libnautilus-private
- From: awalton svn gnome org
- To: svn-commits-list gnome org
- Subject: nautilus r14879 - in trunk: . eel libnautilus-private
- Date: Thu, 22 Jan 2009 14:31:16 +0000 (UTC)
Author: awalton
Date: Thu Jan 22 14:31:15 2009
New Revision: 14879
URL: http://svn.gnome.org/viewvc/nautilus?rev=14879&view=rev
Log:
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.
Modified:
trunk/ChangeLog
trunk/eel/ChangeLog
trunk/eel/eel-debug-drawing.c
trunk/libnautilus-private/nautilus-file-utilities.c
trunk/libnautilus-private/nautilus-metafile.c
Modified: trunk/eel/eel-debug-drawing.c
==============================================================================
--- trunk/eel/eel-debug-drawing.c (original)
+++ trunk/eel/eel-debug-drawing.c Thu Jan 22 14:31:15 2009
@@ -292,7 +292,7 @@
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 ());
Modified: trunk/libnautilus-private/nautilus-file-utilities.c
==============================================================================
--- trunk/libnautilus-private/nautilus-file-utilities.c (original)
+++ trunk/libnautilus-private/nautilus-file-utilities.c Thu Jan 22 14:31:15 2009
@@ -812,7 +812,7 @@
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;
Modified: trunk/libnautilus-private/nautilus-metafile.c
==============================================================================
--- trunk/libnautilus-private/nautilus-metafile.c (original)
+++ trunk/libnautilus-private/nautilus-metafile.c Thu Jan 22 14:31:15 2009
@@ -1917,7 +1917,7 @@
temp_path = g_strconcat (metafile_path, "XXXXXX", NULL);
failed = FALSE;
- fd = mkstemp (temp_path);
+ fd = g_mkstemp (temp_path);
if (fd == -1) {
failed = TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]