Bug 9834

Summary: problem with /etc/rc.d/init.d/autofs
Product: [Retired] Red Hat Linux Reporter: Prahlad <p.sampath>
Component: autofsAssignee: Cristian Gafton <gafton>
Status: CLOSED DEFERRED QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-03-01 16:48:46 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 Prahlad 2000-02-28 16:16:30 UTC
There is a bug in /etc/rc.d/init.d/autofs with "reload" or "restart". The
older automount processes will not get killed.

The problem seems to be in line 149,

                if ! grep -q "^$command" $TMP2; then

Here, $TMP2 ought to be $TMP1.

Also "^$command" ought to be "^$command$" or something like that to check
for new options added to the end of the line in the auto.master file.

Comment 1 Nalin Dahyabhai 2000-03-01 16:48:59 UTC
The first item looks correct; we'll incorporate it into autofs-3.1.4-5 and
later.  You might want to bounce this to the autofs mailing list
(autofs.org), which goes to the authors of the codebase that
all distributions use.