Fixed compiler warnings while building the BBS. Thanks to Ken Bowley for the
patches.
This commit is contained in:
parent
f7401d92d0
commit
b6e58185cd
@ -1,3 +1,8 @@
|
|||||||
|
v1.0.6.9 28-Sep-2016 - Andrew Leary
|
||||||
|
|
||||||
|
1. Fixed compiler warnings while building the BBS. Thanks to
|
||||||
|
Ken Bowley for the patches.
|
||||||
|
|
||||||
v1.0.6.8 20-Jul-2016 - Andrew Leary
|
v1.0.6.8 20-Jul-2016 - Andrew Leary
|
||||||
|
|
||||||
1. Fixed the SETUP.sh script to handle installing on fresh
|
1. Fixed the SETUP.sh script to handle installing on fresh
|
||||||
|
2
Makefile
2
Makefile
@ -148,7 +148,9 @@ dist tar: ${TARFILE}
|
|||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f .filelist core ${TARFILE} paths.h config.h
|
rm -f .filelist core ${TARFILE} paths.h config.h
|
||||||
|
rm -f FILE_ID.DIZ INSTALL config.log config.status stamp-h
|
||||||
for d in ${SUBDIRS}; do (cd $$d && ${MAKE} $@) || exit; done;
|
for d in ${SUBDIRS}; do (cd $$d && ${MAKE} $@) || exit; done;
|
||||||
|
rm -f Makefile.global
|
||||||
|
|
||||||
${TARFILE}: .filelist
|
${TARFILE}: .filelist
|
||||||
cd ..; ln -s ${PACKAGE} ${PACKAGE}-${VERSION} ; rm -f ${TARFILE}; \
|
cd ..; ln -s ${PACKAGE} ${PACKAGE}-${VERSION} ; rm -f ${TARFILE}; \
|
||||||
|
6
configure
vendored
6
configure
vendored
@ -2309,10 +2309,10 @@ SUBDIRS="lib mbcico mbfido mbmon mbsebbs mbutils mbnntp mbtask mbsetup unix lang
|
|||||||
PACKAGE="mbsebbs"
|
PACKAGE="mbsebbs"
|
||||||
MAJOR="1"
|
MAJOR="1"
|
||||||
MINOR="0"
|
MINOR="0"
|
||||||
REVISION="6.8"
|
REVISION="6.9"
|
||||||
VERSION="$MAJOR.$MINOR.$REVISION"
|
VERSION="$MAJOR.$MINOR.$REVISION"
|
||||||
COPYRIGHT="Copyright (C) 1997-2016 Michiel Broek, All Rights Reserved"
|
COPYRIGHT="Copyright (C) 1997-2016 MBSE Development Team, All Rights Reserved"
|
||||||
SHORTRIGHT="Copyright (C) 1997-2016 M. Broek"
|
SHORTRIGHT="Copyright (C) 1997-2016 MBSE DevTm"
|
||||||
GROUP="bbs"
|
GROUP="bbs"
|
||||||
OWNER="mbse"
|
OWNER="mbse"
|
||||||
ROWNER="`id -un root`"
|
ROWNER="`id -un root`"
|
||||||
|
@ -12,10 +12,10 @@ AC_SUBST(SUBDIRS)
|
|||||||
PACKAGE="mbsebbs"
|
PACKAGE="mbsebbs"
|
||||||
MAJOR="1"
|
MAJOR="1"
|
||||||
MINOR="0"
|
MINOR="0"
|
||||||
REVISION="6.8"
|
REVISION="6.9"
|
||||||
VERSION="$MAJOR.$MINOR.$REVISION"
|
VERSION="$MAJOR.$MINOR.$REVISION"
|
||||||
COPYRIGHT="Copyright (C) 1997-2016 Michiel Broek, All Rights Reserved"
|
COPYRIGHT="Copyright (C) 1997-2016 MBSE Development Team, All Rights Reserved"
|
||||||
SHORTRIGHT="Copyright (C) 1997-2016 M. Broek"
|
SHORTRIGHT="Copyright (C) 1997-2016 MBSE DevTm"
|
||||||
GROUP="bbs"
|
GROUP="bbs"
|
||||||
OWNER="mbse"
|
OWNER="mbse"
|
||||||
ROWNER="`id -un root`"
|
ROWNER="`id -un root`"
|
||||||
|
@ -115,6 +115,7 @@ install:
|
|||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f filelist
|
rm -f filelist
|
||||||
|
rm -f basic.html index.html upgrade.html
|
||||||
|
|
||||||
filelist: Makefile
|
filelist: Makefile
|
||||||
BASE=`pwd`; \
|
BASE=`pwd`; \
|
||||||
|
@ -619,7 +619,7 @@ char *printable(char *s, int l)
|
|||||||
case '\b': *p++='\\'; *p++='b'; break;
|
case '\b': *p++='\\'; *p++='b'; break;
|
||||||
default: snprintf(p, 5, "\\%02x", (*s & 0xff)); p+=3; break;
|
default: snprintf(p, 5, "\\%02x", (*s & 0xff)); p+=3; break;
|
||||||
}
|
}
|
||||||
s++;
|
s++;
|
||||||
}
|
}
|
||||||
*p='\0';
|
*p='\0';
|
||||||
return pbuff;
|
return pbuff;
|
||||||
|
@ -594,7 +594,7 @@ fidoaddr *faddr2fido(faddr *aka)
|
|||||||
fidoaddr *Sys;
|
fidoaddr *Sys;
|
||||||
|
|
||||||
Sys = (fidoaddr *)malloc(sizeof(fidoaddr));
|
Sys = (fidoaddr *)malloc(sizeof(fidoaddr));
|
||||||
memset(Sys, 0, sizeof(Sys));
|
memset(Sys, 0, sizeof(*Sys));
|
||||||
Sys->zone = aka->zone;
|
Sys->zone = aka->zone;
|
||||||
Sys->net = aka->net;
|
Sys->net = aka->net;
|
||||||
Sys->node = aka->node;
|
Sys->node = aka->node;
|
||||||
|
@ -245,7 +245,7 @@ void html_massage(char *inbuf, char *outbuf, size_t size)
|
|||||||
char *inptr = inbuf;
|
char *inptr = inbuf;
|
||||||
char *outptr = outbuf;
|
char *outptr = outbuf;
|
||||||
|
|
||||||
memset(outbuf, 0, sizeof(outbuf));
|
memset(outbuf, 0, sizeof(*outbuf));
|
||||||
|
|
||||||
while (*inptr) {
|
while (*inptr) {
|
||||||
|
|
||||||
|
@ -518,8 +518,8 @@ char *Fgets(char *l, int size, FILE *f) {
|
|||||||
eol = TRUE;
|
eol = TRUE;
|
||||||
break;
|
break;
|
||||||
} else
|
} else
|
||||||
cr = (c=='\r');
|
cr = (c=='\r');
|
||||||
if ( cr )
|
if ( cr )
|
||||||
continue;
|
continue;
|
||||||
--size;
|
--size;
|
||||||
if (c=='\n') { eol = TRUE; break; }
|
if (c=='\n') { eol = TRUE; break; }
|
||||||
|
@ -862,7 +862,7 @@ node *getnlent(faddr *addr)
|
|||||||
* Parse the IP flag for a optional port number.
|
* Parse the IP flag for a optional port number.
|
||||||
*/
|
*/
|
||||||
if ((r = strrchr(p, ':'))) {
|
if ((r = strrchr(p, ':'))) {
|
||||||
*r++;
|
r++;
|
||||||
for (tmps = &nl_service; *tmps; tmps=&((*tmps)->next)) {
|
for (tmps = &nl_service; *tmps; tmps=&((*tmps)->next)) {
|
||||||
if (strncmp(p, (*tmps)->flag, 3) == 0) {
|
if (strncmp(p, (*tmps)->flag, 3) == 0) {
|
||||||
/*
|
/*
|
||||||
|
@ -88,7 +88,7 @@ int rearc(char *filename, char *arctype, int do_quiet)
|
|||||||
newname = calloc(PATH_MAX, sizeof(char));
|
newname = calloc(PATH_MAX, sizeof(char));
|
||||||
strcpy(newname, filename);
|
strcpy(newname, filename);
|
||||||
p = strrchr(newname, '.');
|
p = strrchr(newname, '.');
|
||||||
*p++;
|
p++;
|
||||||
*p = '\0';
|
*p = '\0';
|
||||||
|
|
||||||
if (!getarchiver(arctype)) {
|
if (!getarchiver(arctype)) {
|
||||||
|
@ -161,7 +161,7 @@ int clam_stream_check(char *servname, char *servport, char *filename)
|
|||||||
/* fwrite(buf, 1, buf_len, stderr); */
|
/* fwrite(buf, 1, buf_len, stderr); */
|
||||||
buf_c = buf + buf_len;
|
buf_c = buf + buf_len;
|
||||||
while(*buf_c=='\r' || *buf_c == '\r' || *buf_c == ' ')
|
while(*buf_c=='\r' || *buf_c == '\r' || *buf_c == ' ')
|
||||||
*buf_c --;
|
buf_c --;
|
||||||
if (buf_c - buf >= sizeof(" FOUND") && strncasecmp(buf_c - sizeof(" FOUND"), " FOUND", sizeof(" FOUND")-1) == 0) {
|
if (buf_c - buf >= sizeof(" FOUND") && strncasecmp(buf_c - sizeof(" FOUND"), " FOUND", sizeof(" FOUND")-1) == 0) {
|
||||||
char *buf_s = buf;
|
char *buf_s = buf;
|
||||||
buf_c -= sizeof(" FOUND");
|
buf_c -= sizeof(" FOUND");
|
||||||
|
@ -175,7 +175,7 @@ char *mkemsidat(int caller)
|
|||||||
p=xstrcat(p,(char *)"ZAP,");
|
p=xstrcat(p,(char *)"ZAP,");
|
||||||
if (emsi_local_protos & PROT_ZMO)
|
if (emsi_local_protos & PROT_ZMO)
|
||||||
p=xstrcat(p,(char *)"ZMO,");
|
p=xstrcat(p,(char *)"ZMO,");
|
||||||
if (emsi_local_protos & PROT_DZA);
|
if (emsi_local_protos & PROT_DZA)
|
||||||
p=xstrcat(p,(char *)"DZA,");
|
p=xstrcat(p,(char *)"DZA,");
|
||||||
if (emsi_local_protos & PROT_KER)
|
if (emsi_local_protos & PROT_KER)
|
||||||
p=xstrcat(p,(char *)"KER,");
|
p=xstrcat(p,(char *)"KER,");
|
||||||
|
@ -491,9 +491,9 @@ file_list *create_filelist(fa_list *al, char *fl, int create)
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (tmpf = st; tmpf; tmpf = tmpf->next)
|
for (tmpf = st; tmpf; tmpf = tmpf->next)
|
||||||
Syslog('o',"flist: \"%s\" -> \"%s\" dsp:%d flofp:%u floff:%u",
|
Syslog('o',"flist: \"%s\" -> \"%s\" dsp:%d flofp:%p floff:%p",
|
||||||
MBSE_SS(tmpf->local), MBSE_SS(tmpf->remote), tmpf->disposition,
|
MBSE_SS(tmpf->local), MBSE_SS(tmpf->remote), tmpf->disposition,
|
||||||
(unsigned int)tmpf->flofp, (unsigned int)tmpf->floff);
|
tmpf->flofp, tmpf->floff);
|
||||||
|
|
||||||
return st;
|
return st;
|
||||||
}
|
}
|
||||||
|
@ -241,7 +241,7 @@ SM_STATE(send_mail)
|
|||||||
tmpfl = tosend;
|
tmpfl = tosend;
|
||||||
tosend = request;
|
tosend = request;
|
||||||
for (; request->next; request = request->next);
|
for (; request->next; request = request->next);
|
||||||
request->next = tmpfl;
|
request->next = tmpfl;
|
||||||
|
|
||||||
request = NULL;
|
request = NULL;
|
||||||
}
|
}
|
||||||
|
@ -1807,7 +1807,7 @@ int hydra(int role)
|
|||||||
tmpfl = tosend;
|
tmpfl = tosend;
|
||||||
tosend = request;
|
tosend = request;
|
||||||
for (; request->next; request = request->next);
|
for (; request->next; request = request->next);
|
||||||
request->next = tmpfl;
|
request->next = tmpfl;
|
||||||
|
|
||||||
request = NULL;
|
request = NULL;
|
||||||
}
|
}
|
||||||
@ -1823,7 +1823,7 @@ int hydra(int role)
|
|||||||
|
|
||||||
if (emsi_remote_lcodes & LCODE_RH1) {
|
if (emsi_remote_lcodes & LCODE_RH1) {
|
||||||
for (tmpfl = tosend; tmpfl->next; tmpfl = tmpfl->next);
|
for (tmpfl = tosend; tmpfl->next; tmpfl = tmpfl->next);
|
||||||
tmpfl->next = respond;
|
tmpfl->next = respond;
|
||||||
|
|
||||||
rc = hydra_batch(role, tosend);
|
rc = hydra_batch(role, tosend);
|
||||||
tmpfl->next = NULL; /* split filelist into tosend and respond again */
|
tmpfl->next = NULL; /* split filelist into tosend and respond again */
|
||||||
|
@ -312,8 +312,8 @@ int main(int argc, char *argv[])
|
|||||||
if (execl(temp, "mblogin", (char *)NULL) == -1)
|
if (execl(temp, "mblogin", (char *)NULL) == -1)
|
||||||
perror("FATAL: Error loading BBS!");
|
perror("FATAL: Error loading BBS!");
|
||||||
|
|
||||||
InitClient(pw->pw_name, (char *)"mbcico", CFG.location, CFG.logfile,
|
InitClient(pw->pw_name, (char *)"mbcico", CFG.location, CFG.logfile,
|
||||||
CFG.cico_loglevel, CFG.error_log, CFG.mgrlog, CFG.debuglog);
|
CFG.cico_loglevel, CFG.error_log, CFG.mgrlog, CFG.debuglog);
|
||||||
/*
|
/*
|
||||||
* If this happens, nothing is logged!
|
* If this happens, nothing is logged!
|
||||||
*/
|
*/
|
||||||
|
@ -388,8 +388,8 @@ int each(faddr *addr, char flavor, int isflo, char *fname)
|
|||||||
if (*p == '\\')
|
if (*p == '\\')
|
||||||
*p='/';
|
*p='/';
|
||||||
for (p = buf; *p && isspace(*p); p++);
|
for (p = buf; *p && isspace(*p); p++);
|
||||||
if (*p == '~')
|
if (*p == '~')
|
||||||
continue;
|
continue;
|
||||||
if ((*p == '#') || (*p == '-') || (*p == '^') || (*p == '@') || (*p == '~'))
|
if ((*p == '#') || (*p == '-') || (*p == '^') || (*p == '@') || (*p == '~'))
|
||||||
p++;
|
p++;
|
||||||
if (stat(p, &st) != 0) {
|
if (stat(p, &st) != 0) {
|
||||||
|
@ -73,7 +73,7 @@ int rxtcp(void)
|
|||||||
if ((rc=tcprcvfiles()) == 0) {
|
if ((rc=tcprcvfiles()) == 0) {
|
||||||
if ((emsi_local_opts & OPT_NRQ) == 0) {
|
if ((emsi_local_opts & OPT_NRQ) == 0) {
|
||||||
for (tmpfl = &tosend; *tmpfl; tmpfl = &((*tmpfl)->next));
|
for (tmpfl = &tosend; *tmpfl; tmpfl = &((*tmpfl)->next));
|
||||||
*tmpfl = respond_wazoo();
|
*tmpfl = respond_wazoo();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((tosend != NULL) || ((emsi_remote_lcodes & LCODE_NPU) == 0))
|
if ((tosend != NULL) || ((emsi_remote_lcodes & LCODE_NPU) == 0))
|
||||||
|
@ -305,7 +305,7 @@ void Send(int newsmode, char *outstr)
|
|||||||
int ftn2rfc(faddr *f, faddr *t, char *subj, char *origline, time_t mdate, int flags, FILE *pkt)
|
int ftn2rfc(faddr *f, faddr *t, char *subj, char *origline, time_t mdate, int flags, FILE *pkt)
|
||||||
{
|
{
|
||||||
int rrq, result = 1, waskludge = FALSE, badkludge;
|
int rrq, result = 1, waskludge = FALSE, badkludge;
|
||||||
int bNeedToGetAddressFromMsgid = (int)NULL, newsmode = 0, lines, pass, count, first;
|
int bNeedToGetAddressFromMsgid = 0, newsmode = 0, lines, pass, count, first;
|
||||||
char *newsgroup = NULL, *charset = NULL;
|
char *newsgroup = NULL, *charset = NULL;
|
||||||
char *temp, *p, *q, *r, *l, *b, *To = NULL, buf[4096], c, MailFrom[128], MailTo[128];
|
char *temp, *p, *q, *r, *l, *b, *To = NULL, buf[4096], c, MailFrom[128], MailTo[128];
|
||||||
time_t now;
|
time_t now;
|
||||||
|
@ -202,7 +202,7 @@ void editor_configs(void)
|
|||||||
for (i = 1; i < 40; i++)
|
for (i = 1; i < 40; i++)
|
||||||
if (CFG.akavalid[i])
|
if (CFG.akavalid[i])
|
||||||
fprintf(fp, "AKA %s\n", aka2str(CFG.aka[i]));
|
fprintf(fp, "AKA %s\n", aka2str(CFG.aka[i]));
|
||||||
fprintf(fp, "\n");
|
fprintf(fp, "\n");
|
||||||
|
|
||||||
gold_akamatch(fp);
|
gold_akamatch(fp);
|
||||||
fprintf(fp, "; JAM MessageBase Setup\n;\n");
|
fprintf(fp, "; JAM MessageBase Setup\n;\n");
|
||||||
|
@ -444,8 +444,8 @@ int compile(char *nlname, unsigned short zo, unsigned short ne, unsigned short n
|
|||||||
*/
|
*/
|
||||||
if ((*(buf+strlen(buf) -1) != '\n') && (*(buf + strlen(buf) -1) != '\012')) {
|
if ((*(buf+strlen(buf) -1) != '\n') && (*(buf + strlen(buf) -1) != '\012')) {
|
||||||
while (fgets(buf, sizeof(buf) -1, nl) && (*(buf + strlen(buf) -1) != '\n')) /*void*/;
|
while (fgets(buf, sizeof(buf) -1, nl) && (*(buf + strlen(buf) -1) != '\n')) /*void*/;
|
||||||
if (strlen(buf) > 1) /* Suppress EOF character */
|
if (strlen(buf) > 1) /* Suppress EOF character */
|
||||||
Syslog('-', "Nodelist: too long line junked (%d)", lineno);
|
Syslog('-', "Nodelist: too long line junked (%d)", lineno);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -69,7 +69,7 @@ void MacroRead(FILE *fi, FILE *fp)
|
|||||||
/*
|
/*
|
||||||
* Empty lines are just written
|
* Empty lines are just written
|
||||||
*/
|
*/
|
||||||
fprintf(fp, "\r");
|
fprintf(fp, "\n");
|
||||||
} else {
|
} else {
|
||||||
strncpy(temp, ParseMacro(line,&res), 254);
|
strncpy(temp, ParseMacro(line,&res), 254);
|
||||||
if (res)
|
if (res)
|
||||||
@ -78,7 +78,7 @@ void MacroRead(FILE *fi, FILE *fp)
|
|||||||
* Only output if something was evaluated
|
* Only output if something was evaluated
|
||||||
*/
|
*/
|
||||||
if (strlen(temp))
|
if (strlen(temp))
|
||||||
fprintf(fp, "%s\r", temp);
|
fprintf(fp, "%s\n", temp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -373,8 +373,8 @@ int rfc2ftn(FILE *fp, faddr *recipient)
|
|||||||
fprintf(ofp, "\001TOPT %d\n", fmsg->to->point);
|
fprintf(ofp, "\001TOPT %d\n", fmsg->to->point);
|
||||||
if (fmsg->from->point != 0)
|
if (fmsg->from->point != 0)
|
||||||
fprintf(ofp, "\001FMPT %d\n", fmsg->from->point);
|
fprintf(ofp, "\001FMPT %d\n", fmsg->from->point);
|
||||||
fprintf(ofp, "\001INTL %d:%d/%d %d:%d/%d\n", fmsg->to->zone, fmsg->to->net, fmsg->to->node,
|
fprintf(ofp, "\001INTL %d:%d/%d %d:%d/%d\n", fmsg->to->zone, fmsg->to->net, fmsg->to->node,
|
||||||
fmsg->from->zone, fmsg->from->net, fmsg->from->node);
|
fmsg->from->zone, fmsg->from->net, fmsg->from->node);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((fmsg->msgid_a == NULL) || (fmsg->msgid_n == 0)) {
|
if ((fmsg->msgid_a == NULL) || (fmsg->msgid_n == 0)) {
|
||||||
@ -673,10 +673,10 @@ int rfc2ftn(FILE *fp, faddr *recipient)
|
|||||||
for (tmp = msg; tmp; tmp = tmp->next)
|
for (tmp = msg; tmp; tmp = tmp->next)
|
||||||
if (!strcasecmp(tmp->key,"X-FTN-PATH"))
|
if (!strcasecmp(tmp->key,"X-FTN-PATH"))
|
||||||
fill_path(&ptl,tmp->val);
|
fill_path(&ptl,tmp->val);
|
||||||
if (msgs.Aka.point == 0) {
|
if (msgs.Aka.point == 0) {
|
||||||
snprintf(sbe,128,"%u/%u",msgs.Aka.net, msgs.Aka.node);
|
snprintf(sbe,128,"%u/%u",msgs.Aka.net, msgs.Aka.node);
|
||||||
fill_path(&ptl,sbe);
|
fill_path(&ptl,sbe);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Only add PATH line if there is something
|
* Only add PATH line if there is something
|
||||||
|
@ -463,9 +463,9 @@ int getmessage(FILE *pkt, faddr *p_from, faddr *p_to)
|
|||||||
} else
|
} else
|
||||||
if (*(l=p+strlen(p)-1) == '\n')
|
if (*(l=p+strlen(p)-1) == '\n')
|
||||||
*l='\0';
|
*l='\0';
|
||||||
for (l=p+strlen(p)-1;*l == ' ';l--)
|
for (l=p+strlen(p)-1;*l == ' ';l--)
|
||||||
*l='\0';
|
*l='\0';
|
||||||
orig = xstrcpy(p);
|
orig = xstrcpy(p);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -89,7 +89,7 @@ void ParseMask(char *s, fidoaddr *addr)
|
|||||||
else
|
else
|
||||||
if (strcmp(str, "All"))
|
if (strcmp(str, "All"))
|
||||||
good = FALSE;
|
good = FALSE;
|
||||||
str = p;
|
str = p;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((p=strchr(str, '.'))) {
|
if ((p=strchr(str, '.'))) {
|
||||||
@ -101,7 +101,7 @@ void ParseMask(char *s, fidoaddr *addr)
|
|||||||
addr->node = 65535;
|
addr->node = 65535;
|
||||||
else
|
else
|
||||||
good = FALSE;
|
good = FALSE;
|
||||||
str = p;
|
str = p;
|
||||||
} else {
|
} else {
|
||||||
if (strspn(str, "0123456789") == strlen(str))
|
if (strspn(str, "0123456789") == strlen(str))
|
||||||
addr->node = atoi(str);
|
addr->node = atoi(str);
|
||||||
@ -110,7 +110,7 @@ void ParseMask(char *s, fidoaddr *addr)
|
|||||||
addr->node = 65535;
|
addr->node = 65535;
|
||||||
else
|
else
|
||||||
good = FALSE;
|
good = FALSE;
|
||||||
str = NULL;
|
str = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (str) {
|
if (str) {
|
||||||
|
@ -406,7 +406,7 @@ int get_post(char *buf, int max)
|
|||||||
int c, len;
|
int c, len;
|
||||||
|
|
||||||
len = 0;
|
len = 0;
|
||||||
memset(buf, 0, sizeof(buf));
|
memset(buf, 0, sizeof(*buf));
|
||||||
while (TRUE) {
|
while (TRUE) {
|
||||||
c = tty_getc(180);
|
c = tty_getc(180);
|
||||||
if (c <= 0) {
|
if (c <= 0) {
|
||||||
|
@ -263,7 +263,7 @@ int get_nntp(char *buf, int max)
|
|||||||
int c, len;
|
int c, len;
|
||||||
|
|
||||||
len = 0;
|
len = 0;
|
||||||
memset(buf, 0, sizeof(buf));
|
memset(buf, 0, sizeof(*buf));
|
||||||
while (TRUE) {
|
while (TRUE) {
|
||||||
c = tty_getc(180);
|
c = tty_getc(180);
|
||||||
if (c <= 0) {
|
if (c <= 0) {
|
||||||
|
@ -652,10 +652,10 @@ int rfc2ftn(FILE *fp)
|
|||||||
for (tmp = msg; tmp; tmp = tmp->next)
|
for (tmp = msg; tmp; tmp = tmp->next)
|
||||||
if (!strcasecmp(tmp->key,"X-FTN-PATH"))
|
if (!strcasecmp(tmp->key,"X-FTN-PATH"))
|
||||||
fill_path(&ptl,tmp->val);
|
fill_path(&ptl,tmp->val);
|
||||||
if (msgs.Aka.point == 0) {
|
if (msgs.Aka.point == 0) {
|
||||||
snprintf(sbe,16,"%u/%u",msgs.Aka.net, msgs.Aka.node);
|
snprintf(sbe,16,"%u/%u",msgs.Aka.net, msgs.Aka.node);
|
||||||
fill_path(&ptl,sbe);
|
fill_path(&ptl,sbe);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Only add PATH line if there is something
|
* Only add PATH line if there is something
|
||||||
|
@ -1042,7 +1042,7 @@ void Choose_Mailbox(char *Option)
|
|||||||
SetEmailArea((char *)"trash");
|
SetEmailArea((char *)"trash");
|
||||||
else if (!strcmp(sMailbox, "trash"))
|
else if (!strcmp(sMailbox, "trash"))
|
||||||
SetEmailArea((char *)"archive");
|
SetEmailArea((char *)"archive");
|
||||||
else if (!strcmp(sMailbox, "archive"));
|
else if (!strcmp(sMailbox, "archive"))
|
||||||
SetEmailArea((char *)"mailbox");
|
SetEmailArea((char *)"mailbox");
|
||||||
}
|
}
|
||||||
Syslog('+', "Emailarea: %s", sMailbox);
|
Syslog('+', "Emailarea: %s", sMailbox);
|
||||||
|
@ -328,7 +328,7 @@ void DoMenu(int Type)
|
|||||||
case 7:
|
case 7:
|
||||||
/* Run external program */
|
/* Run external program */
|
||||||
if (strlen(menus.DoorName) && !menus.HideDoor) {
|
if (strlen(menus.DoorName) && !menus.HideDoor) {
|
||||||
memset(temp, 0, sizeof(temp));
|
memset(temp, 0, sizeof(*temp));
|
||||||
strcpy(temp, menus.DoorName);
|
strcpy(temp, menus.DoorName);
|
||||||
ExtDoor(menus.OptionalData, menus.NoDoorsys, menus.Y2Kdoorsys, menus.Comport,
|
ExtDoor(menus.OptionalData, menus.NoDoorsys, menus.Y2Kdoorsys, menus.Comport,
|
||||||
menus.NoSuid, menus.NoPrompt, menus.SingleUser, temp);
|
menus.NoSuid, menus.NoPrompt, menus.SingleUser, temp);
|
||||||
|
@ -892,28 +892,28 @@ void MsgGlobal(void)
|
|||||||
Found = TRUE;
|
Found = TRUE;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (Found)
|
if (Found)
|
||||||
break;
|
break;
|
||||||
fseek(tfil, 0, SEEK_SET);
|
fseek(tfil, 0, SEEK_SET);
|
||||||
while (fread(&Sc, sizeof(sysconnect), 1, tfil) == 1) {
|
while (fread(&Sc, sizeof(sysconnect), 1, tfil) == 1) {
|
||||||
if (Sc.aka.zone == 0) {
|
if (Sc.aka.zone == 0) {
|
||||||
fseek(tfil, - sizeof(sysconnect), SEEK_CUR);
|
fseek(tfil, - sizeof(sysconnect), SEEK_CUR);
|
||||||
memset(&Sc, 0, sizeof(sysconnect));
|
memset(&Sc, 0, sizeof(sysconnect));
|
||||||
Sc.aka.zone = a2.zone;
|
Sc.aka.zone = a2.zone;
|
||||||
Sc.aka.net = a2.net;
|
Sc.aka.net = a2.net;
|
||||||
Sc.aka.node = a2.node;
|
Sc.aka.node = a2.node;
|
||||||
Sc.aka.point = a2.point;
|
Sc.aka.point = a2.point;
|
||||||
Sc.sendto = TRUE;
|
Sc.sendto = TRUE;
|
||||||
Sc.receivefrom = TRUE;
|
Sc.receivefrom = TRUE;
|
||||||
snprintf(Sc.aka.domain, 13, "%s", a2.domain);
|
snprintf(Sc.aka.domain, 13, "%s", a2.domain);
|
||||||
fwrite(&Sc, sizeof(sysconnect), 1, tfil);
|
fwrite(&Sc, sizeof(sysconnect), 1, tfil);
|
||||||
if (SaveMsgRec(marea, FALSE) == 0) {
|
if (SaveMsgRec(marea, FALSE) == 0) {
|
||||||
Done++;
|
Done++;
|
||||||
Syslog('+', "Added %s to area %s", aka2str(a2), msgs.Tag);
|
Syslog('+', "Added %s to area %s", aka2str(a2), msgs.Tag);
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case 3: fseek(tfil, 0, SEEK_SET);
|
case 3: fseek(tfil, 0, SEEK_SET);
|
||||||
while (fread(&Sc, sizeof(sysconnect), 1, tfil) == 1) {
|
while (fread(&Sc, sizeof(sysconnect), 1, tfil) == 1) {
|
||||||
|
@ -474,7 +474,7 @@ void ImportOneline(void)
|
|||||||
mbse_mvprintw(5, 6, "8.7.3 IMPORT ONELINERS");
|
mbse_mvprintw(5, 6, "8.7.3 IMPORT ONELINERS");
|
||||||
set_color(CYAN, BLACK);
|
set_color(CYAN, BLACK);
|
||||||
temp = calloc(PATH_MAX, sizeof(char));
|
temp = calloc(PATH_MAX, sizeof(char));
|
||||||
memset(temp, 0, sizeof(temp));
|
memset(temp, 0, sizeof(*temp));
|
||||||
strcpy(temp, edit_str(21, 6,64, temp, (char *)"The ^full path and filename^ of the file to import"));
|
strcpy(temp, edit_str(21, 6,64, temp, (char *)"The ^full path and filename^ of the file to import"));
|
||||||
if (strlen(temp) == 0) {
|
if (strlen(temp) == 0) {
|
||||||
free(temp);
|
free(temp);
|
||||||
|
@ -117,7 +117,7 @@ static void die(int onsig)
|
|||||||
for (i = 1; i < 40; i++)
|
for (i = 1; i < 40; i++)
|
||||||
if (CFG.akavalid[i])
|
if (CFG.akavalid[i])
|
||||||
fprintf(fp, "AKA %s\n", aka2str(CFG.aka[i]));
|
fprintf(fp, "AKA %s\n", aka2str(CFG.aka[i]));
|
||||||
fprintf(fp, "\n");
|
fprintf(fp, "\n");
|
||||||
|
|
||||||
gold_akamatch(fp);
|
gold_akamatch(fp);
|
||||||
fprintf(fp, "; JAM MessageBase Setup\n;\n");
|
fprintf(fp, "; JAM MessageBase Setup\n;\n");
|
||||||
|
@ -837,8 +837,8 @@ int each(faddr *addr, char flavor, int isflo, char *fname)
|
|||||||
if (*p == '\\')
|
if (*p == '\\')
|
||||||
*p='/';
|
*p='/';
|
||||||
for (p = buf; *p && isspace(*p); p++);
|
for (p = buf; *p && isspace(*p); p++);
|
||||||
if (*p == '~')
|
if (*p == '~')
|
||||||
continue;
|
continue;
|
||||||
if ((*p == '#') || (*p == '-') || (*p == '^') || (*p == '@'))
|
if ((*p == '#') || (*p == '-') || (*p == '^') || (*p == '@'))
|
||||||
p++;
|
p++;
|
||||||
if (stat(p, &st) != 0) {
|
if (stat(p, &st) != 0) {
|
||||||
|
@ -84,7 +84,7 @@ void fill_portlist(pp_list **fdp, pp_list *new)
|
|||||||
pp_list *tmp, *ta;
|
pp_list *tmp, *ta;
|
||||||
|
|
||||||
tmp = (pp_list *)malloc(sizeof(pp_list));
|
tmp = (pp_list *)malloc(sizeof(pp_list));
|
||||||
memset(tmp, 0, sizeof(tmp));
|
memset(tmp, 0, sizeof(*tmp));
|
||||||
tmp->next = NULL;
|
tmp->next = NULL;
|
||||||
strncpy(tmp->tty, new->tty, 6);
|
strncpy(tmp->tty, new->tty, 6);
|
||||||
tmp->mflags = new->mflags;
|
tmp->mflags = new->mflags;
|
||||||
|
@ -309,7 +309,7 @@ void disk_getfs_r(char *buf)
|
|||||||
|
|
||||||
if (ans != NULL)
|
if (ans != NULL)
|
||||||
free(ans);
|
free(ans);
|
||||||
ans = NULL;
|
ans = NULL;
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -14,6 +14,7 @@ all:
|
|||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f core filelist Makefile.bak
|
rm -f core filelist Makefile.bak
|
||||||
|
rm -f editor
|
||||||
|
|
||||||
install:
|
install:
|
||||||
@if [ "`id -un`" != "root" ] ; then \
|
@if [ "`id -un`" != "root" ] ; then \
|
||||||
|
@ -35,11 +35,11 @@ case "$1" in
|
|||||||
rm -f $MBSE_ROOT/var/sema/*
|
rm -f $MBSE_ROOT/var/sema/*
|
||||||
rm -f $MBSE_ROOT/var/*.LCK
|
rm -f $MBSE_ROOT/var/*.LCK
|
||||||
rm -f $MBSE_ROOT/tmp/mb*
|
rm -f $MBSE_ROOT/tmp/mb*
|
||||||
su mbse -c '$MBSE_ROOT/bin/mbtask' >/dev/null
|
su -m mbse -c '$MBSE_ROOT/bin/mbtask' >/dev/null
|
||||||
echo -n "mbtask "
|
echo -n "mbtask "
|
||||||
sleep 2
|
sleep 2
|
||||||
if [ -f $MBSE_ROOT/etc/config.data ]; then
|
if [ -f $MBSE_ROOT/etc/config.data ]; then
|
||||||
su mbse -c '$MBSE_ROOT/bin/mbstat open -quiet'
|
su -m mbse -c '$MBSE_ROOT/bin/mbstat open -quiet'
|
||||||
echo -n "opened "
|
echo -n "opened "
|
||||||
fi
|
fi
|
||||||
echo "done."
|
echo "done."
|
||||||
@ -48,7 +48,7 @@ case "$1" in
|
|||||||
echo -n "Stopping $DESC: "
|
echo -n "Stopping $DESC: "
|
||||||
if [ -f $MBSE_ROOT/var/run/mbtask ]; then
|
if [ -f $MBSE_ROOT/var/run/mbtask ]; then
|
||||||
echo -n "logoff users "
|
echo -n "logoff users "
|
||||||
su mbse -c '$MBSE_ROOT/bin/mbstat close wait -quiet' >/dev/null
|
su -m mbse -c '$MBSE_ROOT/bin/mbstat close wait -quiet' >/dev/null
|
||||||
echo -n " stopping mbtask"
|
echo -n " stopping mbtask"
|
||||||
pid=$( cat $MBSE_ROOT/var/run/mbtask )
|
pid=$( cat $MBSE_ROOT/var/run/mbtask )
|
||||||
kill $pid
|
kill $pid
|
||||||
|
@ -30,6 +30,7 @@ all: ${TARGET}
|
|||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f ${TARGET} *.o *.h~ *.c~ core filelist Makefile.bak
|
rm -f ${TARGET} *.o *.h~ *.c~ core filelist Makefile.bak
|
||||||
|
rm -f login.defs
|
||||||
|
|
||||||
mbuseradd: ${MBUSERADD_OBJS}
|
mbuseradd: ${MBUSERADD_OBJS}
|
||||||
${CC} -o mbuseradd ${MBUSERADD_OBJS} ${LDFLAGS} ${LIBS}
|
${CC} -o mbuseradd ${MBUSERADD_OBJS} ${LDFLAGS} ${LIBS}
|
||||||
|
@ -85,7 +85,7 @@ void dolastlog(struct lastlog *ll, const struct passwd *pw, const char *line, co
|
|||||||
if (ll)
|
if (ll)
|
||||||
*ll = newlog;
|
*ll = newlog;
|
||||||
|
|
||||||
time(&newlog.ll_time);
|
time((time_t *) &newlog.ll_time);
|
||||||
strncpy(newlog.ll_line, line, sizeof newlog.ll_line);
|
strncpy(newlog.ll_line, line, sizeof newlog.ll_line);
|
||||||
#ifdef HAVE_LL_HOST
|
#ifdef HAVE_LL_HOST
|
||||||
strncpy(newlog.ll_host, host, sizeof newlog.ll_host);
|
strncpy(newlog.ll_host, host, sizeof newlog.ll_host);
|
||||||
|
@ -120,7 +120,7 @@ void checkutmp(int picky)
|
|||||||
/* XXX - assumes /dev/tty?? */
|
/* XXX - assumes /dev/tty?? */
|
||||||
strncpy(utent.ut_id, utent.ut_line + 3, sizeof utent.ut_id);
|
strncpy(utent.ut_id, utent.ut_line + 3, sizeof utent.ut_id);
|
||||||
strcpy(utent.ut_user, "LOGIN");
|
strcpy(utent.ut_user, "LOGIN");
|
||||||
time(&utent.ut_time);
|
time((time_t *) &utent.ut_time);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -294,7 +294,7 @@ void setutmp(const char *name, const char *line, const char *host)
|
|||||||
{
|
{
|
||||||
utent.ut_type = USER_PROCESS;
|
utent.ut_type = USER_PROCESS;
|
||||||
strncpy(utent.ut_user, name, sizeof utent.ut_user);
|
strncpy(utent.ut_user, name, sizeof utent.ut_user);
|
||||||
time(&utent.ut_time);
|
time((time_t *) &utent.ut_time);
|
||||||
/* other fields already filled in by checkutmp above */
|
/* other fields already filled in by checkutmp above */
|
||||||
setutent();
|
setutent();
|
||||||
pututline(&utent);
|
pututline(&utent);
|
||||||
|
Reference in New Issue
Block a user