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

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



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