Bug 15183

Summary: autofs init script is confused by similar map names
Product: [Retired] Red Hat Linux Reporter: redhat
Component: autofsAssignee: Nalin Dahyabhai <nalin>
Status: CLOSED RAWHIDE QA Contact:
Severity: high Docs Contact:
Priority: medium    
Version: 7.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-08-02 21:11:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description redhat 2000-08-02 21:11:13 UTC
Problem with /etc/rc.d/init.d/autofs:
Say, I have in my yellowpages two maps:
/users auto.users
/user auto.users

grep on line 107 causes /user to be skipped because /user matches the known
map /users. The correct solution would be to grep for whole words:
-a "`echo "$knownmaps" | grep \ $dir\  = ""
                              ^^     ^^ <- blank spaces

Comment 1 Nalin Dahyabhai 2000-08-02 22:33:20 UTC
This should be fixed in autofs-4.0.0pre7-22 and later.  Please reopen this bug
if you find that this is not the case.

Comment 2 Nalin Dahyabhai 2000-08-11 22:23:55 UTC
*** Bug 16033 has been marked as a duplicate of this bug. ***

Comment 3 Nalin Dahyabhai 2000-08-11 22:57:48 UTC
*** Bug 16033 has been marked as a duplicate of this bug. ***