On Thu, Apr 19, 2001 at 10:12:03AM -0700, Jim Barbour wrote:
> This script relies on being in the parent of the directory being
> looked up. i.e. if you're looking up /usr/local/src, the script
> expects to be in /usr/local. This was true in automount 3.1.4, but
> appears not to be the case in automount 4.0.0. I was able to re-add that
> functionality by modifying automount.c to chdir to the parent right
> before doing the lookup_mounts like this...
>
> However, I'm hesitant to deploy a locally modified version of
> autofs. So, I'm curious...
>
> 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