Bug 535124 – umask 002 not being applied for new directories, new files

2008-08-09  Loïc Minier  <lool@dooz.org>

	Bug 535124 – umask 002 not being applied for new directories, new
	files get the correct umask

	* gfile.c (g_file_make_directory)
	(g_file_make_directory_with_parents): Document ownership and
	permissions of newly created directories as being the default
	ones of the process.

svn path=/trunk/; revision=7330
This commit is contained in:
Loïc Minier 2008-08-09 08:41:43 +00:00 committed by Loic Minier
parent 11b01ae385
commit 15f92bfc3d
2 changed files with 16 additions and 0 deletions

View File

@ -1,3 +1,13 @@
2008-08-09 Loïc Minier <lool@dooz.org>
Bug 535124 umask 002 not being applied for new directories, new
files get the correct umask
* gfile.c (g_file_make_directory)
(g_file_make_directory_with_parents): Document ownership and
permissions of newly created directories as being the default
ones of the process.
2008-08-08 Loïc Minier <lool@dooz.org> 2008-08-08 Loïc Minier <lool@dooz.org>
Bug 535124 umask 002 not being applied for new directories, new Bug 535124 umask 002 not being applied for new directories, new

View File

@ -2706,6 +2706,9 @@ g_file_move (GFile *source,
* directories, this function will fail, setting @error to * directories, this function will fail, setting @error to
* %G_IO_ERROR_NOT_SUPPORTED. * %G_IO_ERROR_NOT_SUPPORTED.
* *
* For a local #GFile the newly created directory will have the default
* (current) ownership and permissions of the current process.
*
* If @cancellable is not %NULL, then the operation can be cancelled by * If @cancellable is not %NULL, then the operation can be cancelled by
* triggering the cancellable object from another thread. If the operation * triggering the cancellable object from another thread. If the operation
* was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned.
@ -2747,6 +2750,9 @@ g_file_make_directory (GFile *file,
* 'mkdir -p'. If the file system does not support creating directories, this * 'mkdir -p'. If the file system does not support creating directories, this
* function will fail, setting @error to %G_IO_ERROR_NOT_SUPPORTED. * function will fail, setting @error to %G_IO_ERROR_NOT_SUPPORTED.
* *
* For a local #GFile the newly created directories will have the default
* (current) ownership and permissions of the current process.
*
* If @cancellable is not %NULL, then the operation can be cancelled by * If @cancellable is not %NULL, then the operation can be cancelled by
* triggering the cancellable object from another thread. If the operation * triggering the cancellable object from another thread. If the operation
* was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned.