net-fs/autofs-3.1.7-r2 installs /etc/init.d/autofs. The following expression calculates the name of the pidfile (line 86): pidfile=/var/run/autofs`echo $mnt | sed 's/\//./'`.pid It should be: pidfile=/var/run/autofs`echo $mnt | sed 's/\//./g'`.pid as $mnt might contain multiple slashes.
This was changed a while ago, but I guess I never bumped the revision number up for autofs. I have done this now. Sorry for that.