Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [BUG] zgetdir() in a directory of a bind mount returns "."



On Sun, Nov 05, 2006 at 08:44:35AM +0100, Matthias Lederhofer wrote:
> The problem is that one device can be mounted on itself using bind
> mounts.  In this case in line 311 of compat.c pdev and dev are equal
> but the inodes differ because readdir() returns the inode of the
> target directory of the bind mount and stat(".") in line 252 returned
> the inode of the source directory.
> Undefining HAVE_STRUCT_DIRENT_D_INO works and I don't know if there is
> any other way to work with bind-mounts than not using the inode
> returned by readdir().

I think I recall something similar happening with chroots.



Messages sorted by: Reverse Date, Date, Thread, Author