Fixed group stat counter for user posted messages

This commit is contained in:
Michiel Broek
2004-05-11 13:23:31 +00:00
parent 76d22550a1
commit 0119dbe0f2
4 changed files with 67 additions and 4 deletions

View File

@@ -72,7 +72,7 @@ int CountMGroup(void)
mgroup.Active = TRUE;
fwrite(&mgroup, sizeof(mgroup), 1, fil);
fclose(fil);
chmod(ffile, 0640);
chmod(ffile, 0660);
return 2;
} else
return -1;
@@ -205,7 +205,7 @@ void CloseMGroup(int force)
fclose(fi);
fclose(fo);
unlink(fout);
chmod(fin, 0640);
chmod(fin, 0660);
disk_reset();
Syslog('+', "Updated \"mgroups.data\"");
if (!force)
@@ -213,7 +213,7 @@ void CloseMGroup(int force)
return;
}
}
chmod(fin, 0640);
chmod(fin, 0660);
working(1, 0, 0);
unlink(fout);
}