A few small fixes
This commit is contained in:
parent
8fc62cee02
commit
b24fe1e190
@ -4662,6 +4662,8 @@ v0.33.20 10-Feb-2002
|
||||
templates.
|
||||
Changed the screen layout of menu 10.2 a bit as suggested by
|
||||
Vince Coen.
|
||||
Fixed a non understandable logmessage in check if nodes are
|
||||
connected to file and or mail groups.
|
||||
|
||||
mbfido:
|
||||
In AreaMgr and FileMgr changed aka matching for area
|
||||
|
4
TODO
4
TODO
@ -71,6 +71,10 @@ mbfile:
|
||||
|
||||
N: Rearc <area>
|
||||
|
||||
L: When files are moved from one area to another, the thumbnails
|
||||
are not moved. They are recreated later but this can be very
|
||||
time consuming.
|
||||
|
||||
mbaff:
|
||||
L: Add setup parameters for minimum length of keywords.
|
||||
|
||||
|
@ -339,7 +339,16 @@ int CheckTicGroup(char *Area, int SendUplink, faddr *f)
|
||||
|
||||
memset(&System, 0, sizeof(System));
|
||||
System.aka = fgroup.UpLink;
|
||||
System.receivefrom = TRUE;
|
||||
if (flow && !strcmp(flow, "*&"))
|
||||
/*
|
||||
* Areas direction HQ's go the other way
|
||||
*/
|
||||
System.sendto = TRUE;
|
||||
else
|
||||
/*
|
||||
* Normal distribution areas.
|
||||
*/
|
||||
System.receivefrom = TRUE;
|
||||
fwrite(&System, sizeof(System), 1, mp);
|
||||
memset(&System, 0, sizeof(System));
|
||||
for (i = 1; i < (tichdr.syssize / sizeof(System)); i++)
|
||||
|
@ -296,25 +296,24 @@ int GroupInNode(char *Group, int Mail)
|
||||
{
|
||||
char temp[PATH_MAX], group[13];
|
||||
FILE *no;
|
||||
int i, groups, Area = 0, RetVal = 0;
|
||||
int i, groups, RetVal = 0;
|
||||
|
||||
sprintf(temp, "%s/etc/nodes.data", getenv("MBSE_ROOT"));
|
||||
if ((no = fopen(temp, "r")) == NULL)
|
||||
return FALSE;
|
||||
return 0;
|
||||
|
||||
fread(&nodeshdr, sizeof(nodeshdr), 1, no);
|
||||
fseek(no, 0, SEEK_SET);
|
||||
fread(&nodeshdr, nodeshdr.hdrsize, 1, no);
|
||||
|
||||
while ((fread(&nodes, nodeshdr.recsize, 1, no)) == 1) {
|
||||
Area++;
|
||||
groups = nodeshdr.filegrp / sizeof(group);
|
||||
for (i = 0; i < groups; i++) {
|
||||
fread(&group, sizeof(group), 1, no);
|
||||
if (strlen(group) && !Mail) {
|
||||
if (!strcmp(group, Group)) {
|
||||
RetVal++;
|
||||
Syslog('-', "File group %s in %d: %s", Group, Area, aka2str(nodes.Aka[0]));
|
||||
Syslog('-', "File group %s found in node setup %s", Group, aka2str(nodes.Aka[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -324,7 +323,7 @@ int GroupInNode(char *Group, int Mail)
|
||||
if (strlen(group) && Mail) {
|
||||
if (!strcmp(group, Group)) {
|
||||
RetVal++;
|
||||
Syslog('-', "Mail group %s found in %d: %s", Group, Area, aka2str(nodes.Aka[0]));
|
||||
Syslog('-', "Mail group %s found in node setup %s", Group, aka2str(nodes.Aka[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user