Updated datafile security modes

This commit is contained in:
Michiel Broek
2001-11-14 21:37:58 +00:00
parent 1febff88c3
commit 5f06e6e421
41 changed files with 111 additions and 122 deletions

View File

@@ -396,6 +396,7 @@ void load_maincfg(void)
}
fwrite(&CFG, sizeof(CFG), 1, fp);
fclose(fp);
chmod(cfgfn, 0640);
} else {
fread(&CFG, sizeof(CFG), 1, fp);
fclose(fp);
@@ -436,6 +437,7 @@ void load_taskcfg(void)
}
fwrite(&TCFG, sizeof(TCFG), 1, fp);
fclose(fp);
chmod(tcfgfn, 0640);
tasklog('+', "Created new %s", tcfgfn);
} else {
fread(&TCFG, sizeof(TCFG), 1, fp);