Re: net/nbtscan problem

2008-06-02 Thread Stuart Henderson
On 2008/01/14 22:04, Lewandowski Robert wrote: > OpenBSD 4.2 + nbtscan from packages > problems are: [...] > 2. "trash" like "Z.???C9P?" in output when checking hosts: > > # nbtscan -q -s : -v 10.0.0.187 > 10.0.0.187:ZLOTY Z.???C9P?:00U > 10.0.0.187:ZLOTY Z.???C9

Re: net/nbtscan problem

2008-01-14 Thread Stuart Henderson
On 2008/01/14 22:14, Stuart Henderson wrote: > +- strncpy(name, hostinfo->names[i].ascii_name, 15); > +- name[16]=0; > ++ strlcpy(name, hostinfo->names[i].ascii_name, 16); ...or even just change the name[16] in v_print_hostinfo() and d_print_hostinfo() to name[15].

Re: net/nbtscan problem

2008-01-14 Thread Stuart Henderson
On 2008/01/14 22:04, Lewandowski Robert wrote: > NBTSCAN is a great program and it would be nice if it works from the package. here's a diff against -current ports to test, it didn't blow up on amd64/i386/sparc64, but I only tested it quickly. N.B. mkdir patches before applying. Index: Makefile

net/nbtscan problem

2008-01-14 Thread Lewandowski Robert
Hello, OpenBSD 3.9 + nbtscan from packages OpenBSD 4.2 + nbtscan from packages problems are: 1. nbtscan option "-f" reading list of IPs from file #nbtscan -q -s : -v -f /root/scripts/ip_list.txt nbtscan in free(): error: malloc() has never been called Abort trap (core dumped) 2. "trash" li