Commit 5a6bd93e authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

app/base/base.c (base_init) create temp and swap directories using

2005-10-17  Sven Neumann  <sven@gimp.org>

	* app/base/base.c (base_init)
	* app/base/tile-swap.c (tile_swap_init): create temp and swap
	directories using g_mkdir_with_parents() (bug #308658).
parent 31a28cf4
2005-10-17 Sven Neumann <sven@gimp.org>
* app/base/base.c (base_init)
* app/base/tile-swap.c (tile_swap_init): create temp and swap
directories using g_mkdir_with_parents() (bug #308658).
2005-10-17 Sven Neumann <sven@gimp.org>
* app/core/gimpdrawable-foreground-extract.[ch]
......
......@@ -100,10 +100,10 @@ base_init (GimpBaseConfig *config,
temp_dir = gimp_config_path_expand (config->temp_path, TRUE, NULL);
if (! g_file_test (temp_dir, G_FILE_TEST_EXISTS))
g_mkdir (temp_dir,
S_IRUSR | S_IXUSR | S_IWUSR |
S_IRGRP | S_IXGRP |
S_IROTH | S_IXOTH);
g_mkdir_with_parents (temp_dir,
S_IRUSR | S_IXUSR | S_IWUSR |
S_IRGRP | S_IXGRP |
S_IROTH | S_IXOTH);
g_free (temp_dir);
......
......@@ -231,10 +231,10 @@ tile_swap_init (const gchar *path)
/* create the swap directory if it doesn't exist */
if (! g_file_test (swapdir, G_FILE_TEST_EXISTS))
g_mkdir (swapdir,
S_IRUSR | S_IXUSR | S_IWUSR |
S_IRGRP | S_IXGRP |
S_IROTH | S_IXOTH);
g_mkdir_with_parents (swapdir,
S_IRUSR | S_IXUSR | S_IWUSR |
S_IRGRP | S_IXGRP |
S_IROTH | S_IXOTH);
g_free (swapdir);
......
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