In start() it derives a pid file name with this line:
pidfile=/var/run/autofs`echo $mnt | sed 's/\//./'`.pid
...so if $mnt is something like /foobar/fred it will later try to create
/var/run/autofs.foobar/fred.pid (which fails), rather than
pidfile=/var/run/autofs`echo $mnt | sed 's/\//./g'`.pid
Can you double check the autofs file found in the autofs/files directory... It
appears to already have a /g at the end of the string.
It's not there... but I've done some more digging...
The 3.1.7-r3 ebuild is using 'autofs.rc6' rather than 'autofs' in which this bug
is fixed in rev 1.2. Looks like only the ebuild needs a tweak.
Changed autofs.rc6: Added a \g to the regex.