From 83e4fb4f9b548ffb1eaf0eaeb5306c1aef06cd3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Minier?= Date: Fri, 8 Aug 2008 09:26:51 +0000 Subject: [PATCH] =?UTF-8?q?Bug=20535124=20=E2=80=93=20umask=20002=20not=20?= =?UTF-8?q?being=20applied=20for=20new=20directories,=20new=20files?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2008-08-08 Loïc Minier 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 --- gio/ChangeLog | 8 ++++++++ gio/glocalfile.c | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gio/ChangeLog b/gio/ChangeLog index fc10a3336..0b83fad51 100644 --- a/gio/ChangeLog +++ b/gio/ChangeLog @@ -1,3 +1,11 @@ +2008-08-08 Loïc Minier + + 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 * gwin32mount.c: Remove unused code. Whitespace cleanup. diff --git a/gio/glocalfile.c b/gio/glocalfile.c index 634a38a21..3b5f24d19 100644 --- a/gio/glocalfile.c +++ b/gio/glocalfile.c @@ -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;