zsh-workers
 help / color / mirror / code / Atom feed
* a bug in zsh?
@ 1996-07-25 12:49 Markku.Jarvinen
  1996-07-25 17:03 ` Bart Schaefer
  0 siblings, 1 reply; 2+ messages in thread
From: Markku.Jarvinen @ 1996-07-25 12:49 UTC (permalink / raw)
  To: zsh-workers

Hi!

From the docs this seems to be the right address to ask about a bug.

The system: Sun Sparc 
Operating system: Solaris 2.4 or Solaris 2.5

ZSH-version 2.6-beta19, 3.0pre2, 3.0pre3

BUG: when option chaselinks is set and I run zsh on a host
     which has automounted homedirectories command 'pwd'
     does weird things (i.e. changes directory to some random
     directory that was first mounted using automount).

I traced this to zgetcwd in compat.c, it tries to traverse
filesystem backwards looking for the path it came from, but
chdir("..") from a automounted directory is not same as chdir
into the parent of that directory, so this traversal fails.

Any suggestions other than turning chaselinks off?

	- Markku





^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: a bug in zsh?
  1996-07-25 12:49 a bug in zsh? Markku.Jarvinen
@ 1996-07-25 17:03 ` Bart Schaefer
  0 siblings, 0 replies; 2+ messages in thread
From: Bart Schaefer @ 1996-07-25 17:03 UTC (permalink / raw)
  To: Markku.Jarvinen, zsh-workers

On Jul 25,  3:49pm, Markku.Jarvinen@tpo.fi wrote:
} Subject: a bug in zsh?
}
} BUG: when option chaselinks is set and I run zsh on a host
}      which has automounted homedirectories command 'pwd'
}      does weird things (i.e. changes directory to some random
}      directory that was first mounted using automount).

That's because the automounter is implemented by mounting the directory
somewhere else and then setting up symlinks in the magic automount
directory to point to the actual mount location.  Zsh is doing the
right thing with respect to the symlinks.

} Any suggestions other than turning chaselinks off?

Yeah; turn the automounter off.

There might be something that could be done by checking the results of
stat() on ".." and "." [which zgetcwd() is already doing] and change
the behavior when ".." crosses over to a different logical device.  I'm
not sure what, though.  You'd have to get the original path used by cd
back, and start working *down* until you found the directory at which
the device change took place.

-- 
Bart Schaefer                             Brass Lantern Enterprises
http://www.well.com/user/barts            http://www.nbn.com/people/lantern

New male in /home/schaefer:
>N  2 Justin William Schaefer  Sat May 11 03:43  53/4040  "Happy Birthday"



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1996-07-25 17:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-07-25 12:49 a bug in zsh? Markku.Jarvinen
1996-07-25 17:03 ` Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).