...
 
Commits (2)
......@@ -1909,11 +1909,14 @@ static BOOL send_mlsx(FILE *fp, SOCKET sock, CRYPT_SESSION sess, const char *for
{
va_list va;
char *str;
int rval;
if (fp == NULL && sock == INVALID_SOCKET)
return FALSE;
va_start(va, format);
if (vasprintf(&str, format, va) == -1)
rval = vasprintf(&str, format, va);
va_end(va);
if (rval == -1)
return FALSE;
if (fp != NULL)
fprintf(fp, "%s\r\n", str);
......@@ -1959,7 +1962,7 @@ static BOOL send_mlsx_entry(FILE *fp, SOCKET sock, CRYPT_SESSION sess, unsigned
if (unique != NULL && (feats & MLSX_UNIQUE))
end += sprintf(end, "Unique=%s;", unique);
if (ul != 0 && (feats & MLSX_CREATE)) {
t = *gmtime(&modify);
t = *gmtime(&ul);
end += sprintf(end, "Create=%04d%02d%02d%02d%02d%02d;",
t.tm_year+1900, t.tm_mon+1, t.tm_mday,
t.tm_hour, t.tm_min, t.tm_sec);
......
......@@ -194,7 +194,7 @@ typedef struct js_callback {
/* Bit values for prot[x].misc */
#define PROT_DSZLOG (1<<0) /* Supports DSZ Log */
#define PROT_NATIVE (1<<1) /* Native (32-bit) executable */
#define PROT_NATIVE (1<<1) /* Native (not MS-DOS) executable */
#define PROT_SOCKET (1<<2) /* Use socket I/O, not stdio on *nix */
/* Bit values in netmail_misc */
......@@ -843,7 +843,7 @@ enum { /* readmail and delmailidx which types */
#define EX_OFFLINE (1<<8) /* Run this program offline */
#define EX_BG (1<<10) /* Back-ground/detached process */
#define EX_BIN (1<<11) /* Binary mode (no Unix LF to CRLF) */
#define EX_NATIVE XTRN_NATIVE /* Native 32-bit application */
#define EX_NATIVE XTRN_NATIVE /* Native (not MS-DOS) application */
#define EX_CHKTIME XTRN_CHKTIME /* Check time left */
#define EX_NOECHO XTRN_NOECHO /* Don't echo stdin to stdout */
#define EX_STDIO (EX_STDIN|EX_STDOUT)
......
......@@ -401,7 +401,7 @@ typedef struct
uint16_t total_faddrs; /* Total number of fido addresses */
swap_t **swap; /* Swapping externals */
uint16_t total_swaps; /* Total number of non-swap xtrns */
natvpgm_t **natvpgm; /* Native (32-bit) Programs */
natvpgm_t **natvpgm; /* Native (not MS-DOS) Programs */
uint16_t total_natvpgms; /* Total number of native pgms */
guru_t **guru; /* Gurus */
uint16_t total_gurus; /* Total number of guru files */
......
......@@ -602,9 +602,9 @@ BOOL read_xtrn_cfg(scfg_t* cfg, char* error, size_t maxerrlen)
}
cfg->total_events=i;
/********************************/
/* Native (32-bit) Program list */
/********************************/
/************************************/
/* Native (not MS-DOS) Program list */
/************************************/
get_int(cfg->total_natvpgms,instream);
......
......@@ -388,7 +388,7 @@ int sbbs_t::external(const char* cmdline, long mode, const char* startup_dir)
if(native && mode&EX_STDOUT && !(mode&EX_OFFLINE))
use_pipes=true;
if(native) { // Native (32-bit) external
if(native) { // Native (not MS-DOS) external
if((env_list=strListInit())==NULL) {
XTRN_CLEANUP;
......@@ -1104,7 +1104,7 @@ int sbbs_t::external(const char* cmdline, long mode, const char* startup_dir)
else
SAFECOPY(fullcmdline,cmdline);
if(native) { // Native (32-bit) external
if(native) { // Native (not MS-DOS) external
// Current environment passed to child process
sprintf(dszlog,"%sPROTOCOL.LOG",cfg.node_dir);
......