Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [BUG] zgetdir() in a directory of a bind mount returns "."
- X-seq: zsh-workers 26187
- From: Clint Adams <schizo@xxxxxxxxxx>
- To: Matthias Lederhofer <matled@xxxxxxx>
- Subject: Re: [BUG] zgetdir() in a directory of a bind mount returns "."
- Date: Mon, 29 Dec 2008 06:13:17 +0000
- Cc: zsh-workers@xxxxxxxxxx, 397334@xxxxxxxxxxxxxxx
- In-reply-to: <20061105074435.GA19782@xxxxxxxxxxxx>
- Mail-followup-to: Matthias Lederhofer <matled@xxxxxxx>, zsh-workers@xxxxxxxxxx, 397334@xxxxxxxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20061104192423.GA11308@xxxxxxxxxxxx> <20061105074435.GA19782@xxxxxxxxxxxx>
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