replaced the 0755 by properly or'ed symbolic values (undid this change

2003-01-02  Michael Natterer  <mitch@gimp.org>

	* app/gui/user-install-dialog.c: replaced the 0755 by properly
	or'ed symbolic values (undid this change from Sven accidentially).
This commit is contained in:
Michael Natterer 2003-01-02 13:10:10 +00:00 committed by Michael Natterer
parent d8fd3b04c1
commit 2ed235164f
3 changed files with 17 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2003-01-02 Michael Natterer <mitch@gimp.org>
* 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 <grosgood@rcn.com>
* MAINTAINERS: Updated my CVS.

View File

@ -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;

View File

@ -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;