Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 229

Summary: ';' missing in /etc/rc.d/init.d/autofs
Product: [Retired] Red Hat Linux Reporter: Marc MERLIN <marc_soft>
Component: autofsAssignee: David Lawrence <dkl>
Severity: low Docs Contact:
Priority: low    
Version: 5.2   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1999-05-16 21:41:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Marc MERLIN 1998-11-30 09:55:10 UTC
There are two lines like this one:
TMP1=`mktemp /tmp/autofs.XXXXXX` || { echo "could not make
temp file" >&2; exit 1; }

The default script is missing the last ';'. It works anyway
with bash 1.14 but fails with 2.x because it enforces the
This is not a bug for RH 5.2, but since you have bash 2.02
in rawhide, I suppose you're going to switch to the newer
bash and be bitten by this eventually.

There is also a problem with ifup-alias where
allow_null_glob_expansion has to be replaced with
shopt -(s|u) nullglob.
I don't know if you wish to receive reports like this one in
the future. Please advise.

BTW, the script (and many other for that matter) is also
the ';;' just before esac at the end of the file:

        echo "Usage: /etc/rc.d/init.d/autofs
        exit 1

Here again, bash will be lenient, but according to the man
page, this is a syntax error. Vim with color syntaxing also
shows this as an error. It works for now, but it might be a
good idea to fix those.

Comment 1 Bill Nottingham 1998-11-30 15:59:59 UTC
should be fixed already in the Raw Hide version...