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).
This commit is contained in:
Sven Neumann 2005-10-17 17:27:48 +00:00 committed by Sven Neumann
parent 31a28cf46f
commit 5a6bd93e5a
3 changed files with 14 additions and 8 deletions

View file

@ -1,3 +1,9 @@
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]

View file

@ -100,7 +100,7 @@ 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,
g_mkdir_with_parents (temp_dir,
S_IRUSR | S_IXUSR | S_IWUSR |
S_IRGRP | S_IXGRP |
S_IROTH | S_IXOTH);

View file

@ -231,7 +231,7 @@ 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,
g_mkdir_with_parents (swapdir,
S_IRUSR | S_IXUSR | S_IWUSR |
S_IRGRP | S_IXGRP |
S_IROTH | S_IXOTH);