Permalink
Browse files

When creating a new file, permissions should be 0644. Only new direct…

…ories should be 0755.
  • Loading branch information...
1 parent fe0d7a3 commit 42d43591fe826a1300fac5e4b1b2c5c036d4efdc @ndbroadbent ndbroadbent committed Dec 13, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 treebrowser/src/treebrowser.c
@@ -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)
{

0 comments on commit 42d4359

Please sign in to comment.