From 2ed235164f82dad58297c15334cb6b013c5d29e8 Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Thu, 2 Jan 2003 13:10:10 +0000 Subject: [PATCH] replaced the 0755 by properly or'ed symbolic values (undid this change 2003-01-02 Michael Natterer * app/gui/user-install-dialog.c: replaced the 0755 by properly or'ed symbolic values (undid this change from Sven accidentially). --- ChangeLog | 5 +++++ app/dialogs/user-install-dialog.c | 8 ++++++-- app/gui/user-install-dialog.c | 8 ++++++-- 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 68100da00d..8eaaf9da09 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-01-02 Michael Natterer + + * app/gui/user-install-dialog.c: replaced the 0755 by properly + or'ed symbolic values (undid this change from Sven accidentially). + 2003-01-01 Garry R. Osgood * MAINTAINERS: Updated my CVS. diff --git a/app/dialogs/user-install-dialog.c b/app/dialogs/user-install-dialog.c index 6f571be560..c23b1a3637 100644 --- a/app/dialogs/user-install-dialog.c +++ b/app/dialogs/user-install-dialog.c @@ -1045,9 +1045,13 @@ user_install_run (void) while (gtk_events_pending ()) gtk_main_iteration (); - if (mkdir (gimp_directory (), 0755) == -1) + if (mkdir (gimp_directory (), + S_IRUSR | S_IWUSR | S_IXUSR | + S_IRGRP | S_IXGRP | + S_IROTH | S_IXOTH) == -1) { - g_set_error (&error, G_FILE_ERROR, g_file_error_from_errno (errno), + g_set_error (&error, + G_FILE_ERROR, g_file_error_from_errno (errno), _("Cannot create folder '%s': %s"), gimp_directory (), g_strerror (errno)); goto break_out_of_loop; diff --git a/app/gui/user-install-dialog.c b/app/gui/user-install-dialog.c index 6f571be560..c23b1a3637 100644 --- a/app/gui/user-install-dialog.c +++ b/app/gui/user-install-dialog.c @@ -1045,9 +1045,13 @@ user_install_run (void) while (gtk_events_pending ()) gtk_main_iteration (); - if (mkdir (gimp_directory (), 0755) == -1) + if (mkdir (gimp_directory (), + S_IRUSR | S_IWUSR | S_IXUSR | + S_IRGRP | S_IXGRP | + S_IROTH | S_IXOTH) == -1) { - g_set_error (&error, G_FILE_ERROR, g_file_error_from_errno (errno), + g_set_error (&error, + G_FILE_ERROR, g_file_error_from_errno (errno), _("Cannot create folder '%s': %s"), gimp_directory (), g_strerror (errno)); goto break_out_of_loop;