> > o) Can anyone comment on what happened between 3.1.4 and 4.0.0 that
> > caused the automounter to no longer be in the parent directory when
> > doing a lookup_mount? Is there any reason not to re-add this
> > functionality?
>
> It seems to have fallen off. I don't think autofs 3 ever guaranteed
> that the scripts cwd would be at the mountpoint. I certainly didn't
> think so, so I never considered doing that in autofs 4. I need to think
> about adding it; that code is pretty touchy, and I need to be sure that
> having an extra reference hanging around won't cause a problem.
>
> Isn't there enough information in the script so it can do the "cd"
> itself if it wants?
>
> J
>
We need this script to support "nested" direct mounts, such as...
/usr/local/src/perl server:/perl
/usr/local/src/LOCAL/squash desktop:/squash
/usr/local/src/LOCAL/admsuite frogger:/admsuite
the script may be called to lookup perl (from /usr/local/src), LOCAL
(from /usr/local/src) or squash (from /usr/local/src/LOCAL.) So, the
script needs some context about the key being looked up.
>From the docs I've read, and from what I've seen in the source, all
the script knows is what key is being looked up, it does not know in
what directory the key is being looked up for.
If you don't want to chdir to the directory, another alternative might
be to put the directory in an environment variable before exec'ing the
script.
Thanks for the info,
--
Jim Barbour --- Staff Engineer, Systems Programmer/Administrator
-----------------------------------------------------------------------------
Office pager Cel phone e-mail: [EMAIL PROTECTED]
858-651-2616 800-200-6068 619-977-6491 page: jbarbour@pager
-----------------------------------------------------------------------------