Bill Skaggs <weskaggs@primate.ucdavis.edu>

* plug-ins/xjt/xjt.c: use gimp_temp_name instead of trying to
	create temp dir at loc of file, fixes bug #164116.
This commit is contained in:
William Skaggs 2005-01-17 20:26:14 +00:00
parent b622e0b110
commit 45c18b8a41
2 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2005-01-17 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/xjt/xjt.c: use gimp_temp_name instead of trying to
create temp dir at loc of file, fixes bug #164116.
2005-01-17 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/common/spheredesigner.c: add basic validity check

View File

@ -1684,8 +1684,8 @@ save_xjt_image (const gchar *filename,
gimp_progress_init (l_name);
g_free (l_name);
/* create temporary directory <filename>.tmpdir.<PID> */
l_dirname = g_strdup_printf ("%s.tmpdir.%d", filename, (int) g_pid);
/* create temporary directory */
l_dirname = gimp_temp_name (".tmpdir");
l_prop_file = g_strdup_printf ("%s%cPRP", l_dirname, G_DIR_SEPARATOR);
l_mode_dir = 0777;
if (mkdir (l_dirname, l_mode_dir) != 0)
@ -3314,8 +3314,8 @@ load_xjt_image (const gchar *filename)
gimp_progress_init (l_name);
g_free (l_name);
/* create temporary directory <filename>.tmpdir.<PID> */
l_dirname = g_strdup_printf("%s.tmpdir.%d", filename, (int)g_pid);
/* create temporary directory */
l_dirname = gimp_temp_name (".tmpdir");
l_prop_file = g_strdup_printf("%s%cPRP", l_dirname, G_DIR_SEPARATOR);
l_mode_dir = 0777;
if(mkdir(l_dirname, l_mode_dir) != 0)