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

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

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

	* glocalfile.c: (g_local_file_make_directory): Use 0777 instead of
	0755 as umask

svn path=/trunk/; revision=7323
This commit is contained in:
Loïc Minier 2008-08-08 09:26:51 +00:00 committed by Loic Minier
parent d4fd1ea15d
commit 83e4fb4f9b
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,11 @@
2008-08-08 Loïc Minier <lool@dooz.org>
Bug 535124 umask 002 not being applied for new directories, new
files get the correct umask
* glocalfile.c: (g_local_file_make_directory): Use 0777 instead of
0755 as umask
2008-08-08 Tor Lillqvist <tml@novell.com>
* gwin32mount.c: Remove unused code. Whitespace cleanup.

View File

@ -1992,7 +1992,7 @@ g_local_file_make_directory (GFile *file,
{
GLocalFile *local = G_LOCAL_FILE (file);
if (g_mkdir (local->filename, 0755) == -1)
if (g_mkdir (local->filename, 0777) == -1)
{
int errsv = errno;