[Snort-devel] 1.9 spo_log_tcpdump.c and the 'L' option

Phil Wood cpw at ...86...
Thu Apr 11 21:22:08 EDT 2002


I remember getting this option installed for the purpose of creating a
unique name which I liked better than the default.  It appears that this
is no longer possible, and the unique name must be accompanied by a 
full path in order to bypass the insertion of the contents of 'timebuf'.

if data->filename were null, I'd buy the timebuf.

This might do it.

-----------------------------------------------------------------------------
    if(data->filename[0] == '/')
        value = snprintf(logdir, STD_BUF-1, "%s%s",
                         chrootdir == NULL ? "" : chrootdir, data->filename);
    else
        if (!data->filename || !data->filename[0])
		value = snprintf(logdir, STD_BUF-1, "%s%s/%s",
			chrootdir == NULL ? "" : chrootdir, pv.log_dir,
			timebuf);
        else
		value = snprintf(logdir, STD_BUF-1, "%s%s/%s",
			chrootdir == NULL ? "" : chrootdir, pv.log_dir,
			data->filename);
-----------------------------------------------------------------------------

Thanks,

Phil




More information about the Snort-devel mailing list