loginfix.txt
loginhistory/loginfix.txt · 733 B
From the archive loginhistory.zip
Download the archive « Back to the archive contents
-----------------
Comm.c
-----------------
Find the following in nanny and remove it
char *strtime;
Find the following
strtime = ctime(¤t_time);
strtime[strlen(strtime) - 1] = '\0';
sprintf(log_buf, "%-20s %-24s %s", ch->pcdata->filename, strtime, d->host);
write_last_file(log_buf);
Replace it with the following
{
struct tm *tme;
time_t now;
char day[50];
now = time(0);
tme = localtime(&now);
strftime(day, 50, "%a %b %d %H:%M:%S %Y", tme);
sprintf(log_buf, "%-20s %-24s %s", ch->pcdata->filename, day, d->host);
write_last_file(log_buf);
}