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 22965
- From: Matthias Lederhofer <matled@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: [BUG] zgetdir() in a directory of a bind mount returns "."
- Date: Sun, 5 Nov 2006 08:44:35 +0100
- In-reply-to: <20061104192423.GA11308@xxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20061104192423.GA11308@xxxxxxxxxxxx>
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().
Messages sorted by:
Reverse Date,
Date,
Thread,
Author