Bug 58304 - autofs with NIS auto.master: If an automount point is substring of a previous one, second is ignored.
autofs with NIS auto.master: If an automount point is substring of a previous...
Product: Red Hat Linux
Classification: Retired
Component: autofs (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jeff Moyer
Brock Organ
: 74164 86583 (view as bug list)
Depends On:
  Show dependency treegraph
Reported: 2002-01-13 17:41 EST by Morey Hubin
Modified: 2007-04-18 12:39 EDT (History)
2 users (show)

See Also:
Fixed In Version: autofs-4.1.2-2
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-04-05 10:04:34 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Morey Hubin 2002-01-13 17:41:02 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: 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):

How reproducible:

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
auto.master entries.

Additional info:

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.
Comment 1 Jeff Moyer 2004-03-19 17:39:28 EST
Indeed, this is the case.  I'll queue this fix for the next FC test
release (3).

Comment 2 Jeff Moyer 2004-03-19 18:17:17 EST
*** Bug 74164 has been marked as a duplicate of this bug. ***
Comment 3 Jeff Moyer 2004-03-22 10:42:20 EST
*** Bug 86583 has been marked as a duplicate of this bug. ***
Comment 4 Jeff Moyer 2004-04-14 17:34:14 EDT
The latest version in FC2 has this proposed fix.  Thanks.

Note You need to log in before you can comment on or make changes to this bug.