Bug 226413 - autofs behaviour with *
Summary: autofs behaviour with *
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-07 07:54 UTC by Bunny Evans
Modified: 2018-03-07 19:03 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.