errno clobbering in libdtrace
I've been seeing occasional errors from dtrace(1) on FreeBSD which were caused by the BUFSNAP ioctl returning an error, but returning an errno of something other than ENOENT. It turns out that libdtrace calls free(3) on a buffer before interrogating errno in the error case; this occasionally clobbers errno, causing the problem.
There are a few other ioctl calls in libdtrace with a similar bug. I've fixed them here: http://svnweb.freebsd.org/base?view=revision&revision=269524
No data to display