Bug 127457
Summary: | autofs doesn't treat # character as comment in nsswitch.conf | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 3 | Reporter: | Geoff Gustafson <grgustaf> | ||||
Component: | autofs | Assignee: | Jeff Moyer <jmoyer> | ||||
Status: | CLOSED ERRATA | QA Contact: | Brock Organ <borgan> | ||||
Severity: | low | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 3.0 | CC: | greg.marsden | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | x86_64 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | RHBA-2005-178 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2005-05-19 22:05:37 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: | |||||||
Attachments: |
|
Description
Geoff Gustafson
2004-07-08 14:44:49 UTC
nsswitch.conf listed files nis. the auto.master used by autofs will be the concatination of /etc/auto.master and the nis auto.master. Thus, you got the /home entry from nis. Commenting out nis didn't help because the init script doesn't look for comments. I'll work on a fix for that. True, so maybe it's the expected behavior that when the auto.home file is not present it moves on to nis and finds a map for /home. It's still interesting that U2/i386 behaved differently (with the same nsswitch.conf entry). The reason for this is that there exists a bug in the init script for autofs-3.1.7, whereby if two maps have a matching string in the mount-point name, then the second in the list is ignored. Consider, in your case, the following: /home /etc/auto.home /home/boston /etc/auto.accounts The old init script would equate the two, due to a bug in the regular expression for matching previously handled keys. As such, you got lucky with the old behaviour. Created attachment 110981 [details]
Make the autofs init script terminate processing of a nsswitch.conf line at the commect character.
There are also patches in the tree now which allow for using only one
auto.master map. Either one of these fixes would address this problem.
This fix will make RHEL 3 U5 and RHEL 4 U1. An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2005-177.html |