Misc updates
This commit is contained in:
parent
6e30d29ce4
commit
89bf6e2e5b
@ -15,6 +15,10 @@ v0.35.05 19-Oct-2002
|
|||||||
There is now a mberrors.h file that defines all errorcodes
|
There is now a mberrors.h file that defines all errorcodes
|
||||||
returned by all programs.
|
returned by all programs.
|
||||||
|
|
||||||
|
faq:
|
||||||
|
Changed the section about ftp feeds.
|
||||||
|
Added Q&A about failing internet polls.
|
||||||
|
|
||||||
mbcico:
|
mbcico:
|
||||||
Fixed crash with incoming YooHoo session with bad password.
|
Fixed crash with incoming YooHoo session with bad password.
|
||||||
|
|
||||||
@ -30,6 +34,7 @@ v0.35.05 19-Oct-2002
|
|||||||
Repl ext. Fixed some help texts.
|
Repl ext. Fixed some help texts.
|
||||||
Added in screen 1.14 settings for Plus All, Notify, Passwd and
|
Added in screen 1.14 settings for Plus All, Notify, Passwd and
|
||||||
Pause.
|
Pause.
|
||||||
|
Removed the default Virnet record from the fidonet setup.
|
||||||
|
|
||||||
mbfido:
|
mbfido:
|
||||||
With ticfile processing, the KeepDate setup setting now works.
|
With ticfile processing, the KeepDate setup setting now works.
|
||||||
|
@ -55,56 +55,49 @@ extern int exp_golded;
|
|||||||
*/
|
*/
|
||||||
int CountFidonet(void)
|
int CountFidonet(void)
|
||||||
{
|
{
|
||||||
FILE *fil;
|
FILE *fil;
|
||||||
char ffile[PATH_MAX];
|
char ffile[PATH_MAX];
|
||||||
int count;
|
int count;
|
||||||
|
|
||||||
sprintf(ffile, "%s/etc/fidonet.data", getenv("MBSE_ROOT"));
|
sprintf(ffile, "%s/etc/fidonet.data", getenv("MBSE_ROOT"));
|
||||||
if ((fil = fopen(ffile, "r")) == NULL) {
|
if ((fil = fopen(ffile, "r")) == NULL) {
|
||||||
if ((fil = fopen(ffile, "a+")) != NULL) {
|
if ((fil = fopen(ffile, "a+")) != NULL) {
|
||||||
Syslog('+', "Created new %s", ffile);
|
Syslog('+', "Created new %s", ffile);
|
||||||
fidonethdr.hdrsize = sizeof(fidonethdr);
|
fidonethdr.hdrsize = sizeof(fidonethdr);
|
||||||
fidonethdr.recsize = sizeof(fidonet);
|
fidonethdr.recsize = sizeof(fidonet);
|
||||||
fwrite(&fidonethdr, sizeof(fidonethdr), 1, fil);
|
fwrite(&fidonethdr, sizeof(fidonethdr), 1, fil);
|
||||||
/*
|
/*
|
||||||
* Fill in the defaults
|
* Fill in the defaults
|
||||||
*/
|
*/
|
||||||
memset(&fidonet, 0, sizeof(fidonet));
|
memset(&fidonet, 0, sizeof(fidonet));
|
||||||
sprintf(fidonet.comment, "Fidonet network");
|
sprintf(fidonet.comment, "Fidonet network");
|
||||||
sprintf(fidonet.domain, "fidonet");
|
sprintf(fidonet.domain, "fidonet");
|
||||||
sprintf(fidonet.nodelist, "NODELIST");
|
sprintf(fidonet.nodelist, "NODELIST");
|
||||||
sprintf(fidonet.seclist[0].nodelist, "REGION28");
|
sprintf(fidonet.seclist[0].nodelist, "REGION28");
|
||||||
fidonet.seclist[0].zone = 2;
|
fidonet.seclist[0].zone = 2;
|
||||||
fidonet.seclist[0].net = 28;
|
fidonet.seclist[0].net = 28;
|
||||||
fidonet.zone[0] = 2;
|
fidonet.zone[0] = 2;
|
||||||
fidonet.zone[1] = 1;
|
fidonet.zone[1] = 1;
|
||||||
fidonet.zone[2] = 3;
|
fidonet.zone[2] = 3;
|
||||||
fidonet.zone[3] = 4;
|
fidonet.zone[3] = 4;
|
||||||
fidonet.zone[4] = 5;
|
fidonet.zone[4] = 5;
|
||||||
fidonet.zone[5] = 6;
|
fidonet.zone[5] = 6;
|
||||||
fidonet.available = TRUE;
|
fidonet.available = TRUE;
|
||||||
fwrite(&fidonet, sizeof(fidonet), 1, fil);
|
fwrite(&fidonet, sizeof(fidonet), 1, fil);
|
||||||
memset(&fidonet, 0, sizeof(fidonet));
|
fclose(fil);
|
||||||
sprintf(fidonet.comment, "Virus network");
|
exp_golded = TRUE;
|
||||||
sprintf(fidonet.domain, "virnet");
|
chmod(ffile, 0640);
|
||||||
sprintf(fidonet.nodelist, "VIRNODES");
|
return 1;
|
||||||
fidonet.zone[0] = 9;
|
} else
|
||||||
fidonet.available = TRUE;
|
return -1;
|
||||||
fwrite(&fidonet, sizeof(fidonet), 1, fil);
|
}
|
||||||
fclose(fil);
|
|
||||||
exp_golded = TRUE;
|
|
||||||
chmod(ffile, 0640);
|
|
||||||
return 2;
|
|
||||||
} else
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
fread(&fidonethdr, sizeof(fidonethdr), 1, fil);
|
fread(&fidonethdr, sizeof(fidonethdr), 1, fil);
|
||||||
fseek(fil, 0, SEEK_END);
|
fseek(fil, 0, SEEK_END);
|
||||||
count = (ftell(fil) - fidonethdr.hdrsize) / fidonethdr.recsize;
|
count = (ftell(fil) - fidonethdr.hdrsize) / fidonethdr.recsize;
|
||||||
fclose(fil);
|
fclose(fil);
|
||||||
|
|
||||||
return count;
|
return count;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user