mbsetup now creates more default records on new systems, filesystem layout changed

This commit is contained in:
Michiel Broek
2001-12-25 21:40:16 +00:00
parent a47a97e29d
commit 8fd37e8d8a
8 changed files with 176 additions and 12 deletions

View File

@@ -62,9 +62,19 @@ int CountNGroup(void)
ngrouphdr.hdrsize = sizeof(ngrouphdr);
ngrouphdr.recsize = sizeof(ngroup);
fwrite(&ngrouphdr, sizeof(ngrouphdr), 1, fil);
memset(&ngroup, 0, sizeof(ngroup));
sprintf(ngroup.Name, "DONT");
sprintf(ngroup.Comment, "Do NOT announce");
ngroup.Active = TRUE;
fwrite(&ngroup, sizeof(ngroup), 1, fil);
memset(&ngroup, 0, sizeof(ngroup));
sprintf(ngroup.Name, "LOCAL");
sprintf(ngroup.Comment, "Local file areas");
ngroup.Active = TRUE;
fwrite(&ngroup, sizeof(ngroup), 1, fil);
fclose(fil);
chmod(ffile, 0640);
return 0;
return 2;
} else
return -1;
}