Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 10471 - autofs does not understand yp:foo in auto.master file
autofs does not understand yp:foo in auto.master file
Product: Red Hat Linux
Classification: Retired
Component: autofs (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Nalin Dahyabhai
Depends On:
  Show dependency treegraph
Reported: 2000-03-31 02:32 EST by christian.bac
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2000-04-05 16:02:37 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 christian.bac 2000-03-31 02:32:02 EST
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
$options $
                    elif [ -f $map ]; then
                        echo "$DAEMON $mountoptions $dir file $map $options
                        echo "$DAEMON $mountoptions $dir `basename $map`
s $localoptions"
                echo $map |grep ':' >/dev/null
                if [ $? ]; then
                        map=`echo $map| sed 's/:/ /g'`
                        echo "$DAEMON $mountoptions $dir $map $options
Comment 1 Nalin Dahyabhai 2000-04-05 16:02:59 EDT
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.
Comment 2 das_deniz 2000-04-07 10:00:59 EDT
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)
Comment 3 Nalin Dahyabhai 2000-04-07 10:45:59 EDT
Until Raw Hide gets an update, the same test packages will also be available at
Comment 4 j.pelan 2000-06-15 10:56:18 EDT
Why hasn't this package been added to the 6.2 errata ?
autofs-3.1.4-4 is clearly broken.
Comment 5 Need Real Name 2000-08-21 11:56:20 EDT
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
it... :)

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
you guys.

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
you guys...

P.S. the expiration of bugzilla accounts is extremely annoying.
Comment 6 Nalin Dahyabhai 2000-08-21 12:08:06 EDT
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
Comment 7 Need Real Name 2000-08-21 17:10:10 EDT
I already tried... when I try to install it, RPM gives me this message:

[root@martin ddm]
# 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 autofs@linux.kernel.org and I'll CC:
you as well.

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