I have a shared directory on a NAS with a space in it, which causes automount to not recognize the directory. It ends up mounting on the name "/net/.../FirstWord", which doesn't exist on the NAS. It looks to be a simple quoting issue in /etc/autofs/special_hosts, though adding '\"' around the two '%s' formatters for $1 in the awk script caused I/O errors, and I haven't debugged any further.
Do you happen to know how to export a share with spaces using FreeBSD?
Could you take a look at https://reviews.freebsd.org/D5649?
Fixed in r297207.
I think this can be closed, if it's been fixed?
A commit references this bug: Author: trasz Date: Fri Nov 4 14:06:21 UTC 2016 New revision: 308292 URL: https://svnweb.freebsd.org/changeset/base/308292 Log: MFC r297207: Make the autofs(5) -hosts map more robust, primarily to make it correctly handle NFS shares containing whitespace. This also adds the -E parameter to showmount(8). PR: 207596 Differential Revision: https://reviews.freebsd.org/D5649 Changes: _U stable/10/ stable/10/etc/autofs/special_hosts stable/10/usr.bin/showmount/showmount.8 stable/10/usr.bin/showmount/showmount.c