Regenerate configure. Yeah, I have no idea why I checked this is in version control too.
Check length of command line arguments before doing a strcpy().
As mostly a cosmetic change, replace the strlen + malloc + strcpy with strdup. Under certain conditions, a non-null terminated string can be returned by readline(). For example, on Solaris, a large (2+ Gb) log file will return truncated data, if logsurfer has not been compiled with _FILE_OFFSET_BITS=64. This will cause strlen() to crash (now strdup() will crash with a memory error :)
Add -D option to run as a daemon. This should be replaced by daemon() where it is available. Add -F option to periodically stat files for inode changes and re-open, similar to "tail -F"
Patch similar to OpenBSD/FreeBSD ports
Taken from: http://www.crypt.gen.nz/logsurfer/