Dag-Erling Smørgrav <des@FreeBSD.org> reoprts:
While working on quot(8), I noticed that getmntpoint(3) does not actually accept a device name “with or without /dev/ prepended to it” as the manual page and code comments claim.
This patch corrects the problem by prepending /dev/ to names that do not begin with a '/'.
Since there are now two places in the code that want to prepend /dev/ the code to do this is broken out into a separate function.