Bug 226413

Summary: autofs behaviour with *
Product: Base System Reporter: Bunny Evans <bunny.evans>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: New ---    
Severity: Affects Only Me CC: emaste, trasz
Priority: ---    
Version: CURRENT   
Hardware: Any   
OS: Any   

Description Bunny Evans 2018-03-07 07:54:46 UTC
Not sure if this is really a bug but it appears that way. 
Not sure about severity, maybe no one uses the automounter.

To reproduce:

/etc/auto_master
-------------------------->8---------------
/home   auto_home
-------------------------->8---------------

/etc/auto_home
-------------------------->8---------------
bunny  localhost:/tank/home/&
*      localhost:/usr/home/&
-------------------------->8---------------
according to the description, * is a wildcard match.

cd /home/goat

succeeds

There is no /usr/home/goat

root@bunny:/ # dmesg | grep goat
WARNING: autofs_trigger_one: request for /home/goat/ completed with error 5
WARNING: autofs_trigger_one: request for /home/goat/ completed with error 5
WARNING: autofs_trigger_one: request for /home/goat/ completed with error 5
WARNING: autofs_trigger_one: request for /home/goat/ completed with error 5
WARNING: autofs_trigger_one: request for /home/goat/ completed with error 5
WARNING: autofs_trigger_one: request for /home/goat/ completed with error 5

root@bunny:/ # ls -ld /home/goat
drwxr-xr-x  3 root  wheel  512 Mar  7 16:52 /home/goat


Confusing.
Comment 1 Bunny Evans 2018-03-07 07:57:11 UTC
automount -u -v
does not appear to try to unmount /home/goat


Obviously, removing the "* ..." line is a solution, but not a good one.