Red Hat Bugzilla – Bug 10471
autofs does not understand yp:foo in auto.master file
Last modified: 2008-05-01 11:37:55 EDT
autofs script consider that names in /etc/auto.master are only file names.
It does not split the names that look like foo:bar (yp, nis, ...).
diff -e autofs.old autofs from my correction.
map=`echo "/etc/$map" | sed -e 's:^/etc//:/:'`
if [ -x $map ]; then
echo "$DAEMON $mountoptions $dir program $map
elif [ -f $map ]; then
echo "$DAEMON $mountoptions $dir file $map $options
echo "$DAEMON $mountoptions $dir `basename $map`
echo $map |grep ':' >/dev/null
if [ $? ]; then
map=`echo $map| sed 's/:/ /g'`
echo "$DAEMON $mountoptions $dir $map $options
This will be fixed in autofs-3.1.4-6 in Raw Hide
which fixes these assumptions and simplifies a few
other things a bit.
Please reopen this bug ID if you find that upgrading
doesn't solve the problem.
maybe this would be resolved if there was an autofs-3.1.4-6 in RawHide
but there is none... only -5 (as of Apr 7)
Until Raw Hide gets an update, the same test packages will also be available at
Why hasn't this package been added to the 6.2 errata ?
autofs-3.1.4-4 is clearly broken.
Despite the comments above, there also is no autofs-3.1.4-6 in
http://people.redhat.com/nalin/test/. Additionally, the autofs script does not
look at /etc/nsswitch.conf, despite the fact that there is an entry for it in
the distributed /etc/nsswitch.conf file. Looks like someone was thinking about
As of autofs-3.1.4-4, the
no-I'm-not-gonna-look-at-NIS-if-you-have-a-local-/etc/auto.master bug is not
fixed, so I'm fixing both of these problems and I'm going to submit my fixes to
I have to say, COME ON GUYS! This has been broken for over a year (since the
release of RedHat 6.1 anyway), and it's only a 300 line shell script. Between
this and breaking sort -n (the source for which comes complete with regression
tests) in RH6.2, it makes me wonder why I fork over money for new releases from
P.S. the expiration of bugzilla accounts is extremely annoying.
The 3.1.5-4 package is the most recent test package available, currently slated
for inclusion in our next release. Please test it and see if it fixes the
I already tried... when I try to install it, RPM gives me this message:
# rpm -Uvh autofs-3.1.5-4.i386.rpm
only packages with major numbers <= 3 are supported by this version of RPM
error: autofs-3.1.5-4.i386.rpm cannot be installed
Besides which I've already fixed the script as I described in my earlier
comments. I'm going to send the script to firstname.lastname@example.org and I'll CC:
you as well.