Skip to content

Commit

Permalink
When creating a new file, permissions should be 0644. Only new direct…
Browse files Browse the repository at this point in the history
…ories should be 0755.
  • Loading branch information
ndbroadbent committed Dec 13, 2011
1 parent fe0d7a3 commit 42d4359
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion treebrowser/src/treebrowser.c
Expand Up @@ -1032,7 +1032,7 @@ on_menu_create_new_object(GtkMenuItem *menuitem, gchar *type)
if (utils_str_equal(type, "directory"))
creation_success = (g_mkdir(uri_new, 0755) == 0);
else
creation_success = (g_creat(uri_new, 0755) != -1);
creation_success = (g_creat(uri_new, 0644) != -1);

if (creation_success)
{
Expand Down

0 comments on commit 42d4359

Please sign in to comment.