F diff --git a/system_part.c b/system_part.c
--- a/system_part.c
+++ b/system_part.c
options.output_dir_fd=open(options.output_path,O_RDONLY|O_DIRECTORY);
if(options.output_dir_fd==-1)
{
- mkdir(options.output_path,0770);
+ mkdir(options.output_path,0775);
options.output_dir_fd=open(options.output_path,O_RDONLY|O_DIRECTORY);
if(options.output_dir_fd==-1)
die("Could not open output dir\n");
ret=openat(options.output_dir_fd,branch_name,O_DIRECTORY|O_RDONLY);
if(ret==-1)
{
- if(mkdirat(options.output_dir_fd,branch_name,0770)==-1)
+ if(mkdirat(options.output_dir_fd,branch_name,0775)==-1)
die("Could not create branch directory for %s\n",branch_name);
ret=openat(options.output_dir_fd,branch_name,O_DIRECTORY|O_RDONLY);
memcpy(new_filename+old_filename_len,".html",sizeof(".html"));
unlinkat(branch_dir,new_filename,0);
- fd=openat(branch_dir,new_filename,O_CREAT|O_RDWR,0660);
+ fd=openat(branch_dir,new_filename,O_CREAT|O_RDWR,0664);
if(fd==-1)
die("Could not open the file '%s' for one of the branches\n",filename);
if(ret!=-1)
return ret;
- mkdirat(base_dir,dir_name,0770);
+ mkdirat(base_dir,dir_name,0775);
ret=openat(base_dir,dir_name,O_DIRECTORY|O_RDONLY);
if(ret==-1)
die("Could not create the 'files' subdirectory of one of the branch dirs\n");