Red Hat Bugzilla – Bug 58304
autofs with NIS auto.master: If an automount point is substring of a previous one, second is ignored.
Last modified: 2007-04-18 12:39:00 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901
Description of problem:
In our enterprise we have Boston and San Diego home directories using /u/. In
Boston /u has the local homedirs and /remote/u has the remote
ones. If /remote/u appears first in NIS then the grep in autofs Line 159 causes
/remote/u and /u to match (the second is substring of first). The grep command
should be enhanced to ...grep '\<'$dir/ to emphasize a word boundary in the pattern.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create a mount point /testing/user
2. Create second mount point of /user
3. Execute /etc/init.d/autofs start and /user will not show up.
4. Make my suggested fix from Description above.
5. /etc/init.d/autofs restart and mount point works fine now.
Actual Results: The problem was solved. It is simple to detect through the
shell script print options, provided you have the right circumstance.
This will definately effect large enterprises (like mine :) ).
Expected Results: Second mount (/u) should appear naturally per out NIS
This, highly specialized, bug is reproducable in RedHat 7.1 and
probably beyond... The fix/workaround is relatively simple per
the last line of the description above.
Indeed, this is the case. I'll queue this fix for the next FC test
*** Bug 74164 has been marked as a duplicate of this bug. ***
*** Bug 86583 has been marked as a duplicate of this bug. ***
The latest version in FC2 has this proposed fix. Thanks.