bzero the CCB header in getdevtree() and set the path properly, to
authorPeter Avalos <pavalos@dragonflybsd.org>
Wed, 28 Nov 2007 21:12:11 +0000 (21:12 +0000)
committerPeter Avalos <pavalos@dragonflybsd.org>
Wed, 28 Nov 2007 21:12:11 +0000 (21:12 +0000)
commit9ac1075533a1fd86dc02672e2eb1cf39b9cac155
tree9de12a23d19148040e810925028c3310e6bf7ce6
parentd910b20ea9c1616ebdbaa0b79a30078274b5b811
bzero the CCB header in getdevtree() and set the path properly, to
avoid having random garbage in the CCB header.

if the lun isn't specified in a device specifier, it should default to
0, not whatever random data happens to be in the lun variable.

Obtained-from: FreeBSD
sbin/camcontrol/camcontrol.c