On Wed, 23 Feb 2005, Chris Feist wrote:
Thanks Chris.
This is a really useful bit of code.
Appart from addressing the default map problem, it is one of the pieces of code needed to move logic out of the init script.
Howerver, we can't assume that maps are stored in "/etc". This really should be a configure logical.
This patch addresses the problem if a user has the following in one of their automount maps:
# auto.misc
test -fstype=autofs auto.m2
Before it would automatically assume that auto.m2 was a yp/nis map. The patch now checks if the file exists in /etc/ (and if it's a file or program map) or if it exists in yp (according to the order in nsswitch.conf).
In the future we may want to include functionality in the lookup_xxx.so modules so we can more easily detect if a certain map exists.
Thanks, Chris
_______________________________________________ autofs mailing list [email protected] http://linux.kernel.org/mailman/listinfo/autofs
