t = ctime(&now);
if((p = strchr(t, '\n')) != NULL)
*p = 0;
- fprintf(out, "%s: %s\n", p, b);
+ fprintf(out, "%s: %s\n", t, b);
free(b);
fclose(out);
}
{
if(fn != NULL)
free(fn);
- if(var->val.str[0] == L'0') {
+ if(var->val.str[0] == L'\0') {
fn = NULL;
} else {
if((fn = icwcstombs(var->val.str, NULL)) == NULL)
{
if(!hup) {
GCBREG(newtransfercb, reg, NULL);
+ chfile(confgetvar("reqstat", "file"), NULL);
CBREG(confgetvar("reqstat", "file"), conf_update, chfile, NULL, NULL);
}
return(0);