vnconfig - use correct device if using autoclone
authorAlex Hornung <ahornung@gmail.com>
Mon, 27 Feb 2012 16:47:56 +0000 (16:47 +0000)
committerAlex Hornung <ahornung@gmail.com>
Mon, 27 Feb 2012 16:47:56 +0000 (16:47 +0000)
commit49ada555087c11945c2c37feec67c3e305916a85
tree81e8cedfff868b62721ff7093db3fa27def4dcbe
parent523f068048e2f8f3caaaf6c86c8073dd233c0f62
vnconfig - use correct device if using autoclone

 * if autoclone device (/dev/vn) is used in vnconfig, the wrong device
   is later passed to, e.g., swapon().

 * Fix it by changing the device name the rest of vnconfig
   operates on to the actual device name as per fdevname.

Reported-by: tuxillo
usr.sbin/vnconfig/vnconfig.c