From f9aff042b8218ca18f8f892a0de295c1e3f0ae20 Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Tue, 6 Jan 2004 20:34:47 +0000 Subject: [PATCH] Use 0777 as the mode for mkdir() and let the umask do the right thing. 2004-01-06 Federico Mena Quintero * gtk/gtkfilesel.c (gtk_file_selection_create_dir_confirmed): Use 0777 as the mode for mkdir() and let the umask do the right thing. Fixes #121819. --- ChangeLog | 4 ++++ ChangeLog.pre-2-10 | 4 ++++ ChangeLog.pre-2-4 | 4 ++++ ChangeLog.pre-2-6 | 4 ++++ ChangeLog.pre-2-8 | 4 ++++ gtk/gtkfilesel.c | 2 +- 6 files changed, 21 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 08bd8e1477..7bd2b36843 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2004-01-06 Federico Mena Quintero + * gtk/gtkfilesel.c (gtk_file_selection_create_dir_confirmed): Use + 0777 as the mode for mkdir() and let the umask do the right + thing. Fixes #121819. + * gtk/gtkfilesystemunix.c (filename_is_root): g_path_skip_root() can return NULL; handle this. Fixes #129565. diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 08bd8e1477..7bd2b36843 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,5 +1,9 @@ 2004-01-06 Federico Mena Quintero + * gtk/gtkfilesel.c (gtk_file_selection_create_dir_confirmed): Use + 0777 as the mode for mkdir() and let the umask do the right + thing. Fixes #121819. + * gtk/gtkfilesystemunix.c (filename_is_root): g_path_skip_root() can return NULL; handle this. Fixes #129565. diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 08bd8e1477..7bd2b36843 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,5 +1,9 @@ 2004-01-06 Federico Mena Quintero + * gtk/gtkfilesel.c (gtk_file_selection_create_dir_confirmed): Use + 0777 as the mode for mkdir() and let the umask do the right + thing. Fixes #121819. + * gtk/gtkfilesystemunix.c (filename_is_root): g_path_skip_root() can return NULL; handle this. Fixes #129565. diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 08bd8e1477..7bd2b36843 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,5 +1,9 @@ 2004-01-06 Federico Mena Quintero + * gtk/gtkfilesel.c (gtk_file_selection_create_dir_confirmed): Use + 0777 as the mode for mkdir() and let the umask do the right + thing. Fixes #121819. + * gtk/gtkfilesystemunix.c (filename_is_root): g_path_skip_root() can return NULL; handle this. Fixes #129565. diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 08bd8e1477..7bd2b36843 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,5 +1,9 @@ 2004-01-06 Federico Mena Quintero + * gtk/gtkfilesel.c (gtk_file_selection_create_dir_confirmed): Use + 0777 as the mode for mkdir() and let the umask do the right + thing. Fixes #121819. + * gtk/gtkfilesystemunix.c (filename_is_root): g_path_skip_root() can return NULL; handle this. Fixes #129565. diff --git a/gtk/gtkfilesel.c b/gtk/gtkfilesel.c index 5253578d10..3962e4394d 100644 --- a/gtk/gtkfilesel.c +++ b/gtk/gtkfilesel.c @@ -1445,7 +1445,7 @@ gtk_file_selection_create_dir_confirmed (GtkWidget *widget, goto out; } - if (mkdir (sys_full_path, 0755) < 0) + if (mkdir (sys_full_path, 0777) < 0) { buf = g_strdup_printf (_("Error creating folder \"%s\": %s\n"), dirname, g_strerror (errno));