]> sourceware.org Git - newlib-cygwin.git/commit
readdir() with mount point dentry, return mount point INO
authorJoe Lowe <joe@pismotec.com>
Tue, 13 Jun 2017 18:12:50 +0000 (11:12 -0700)
committerCorinna Vinschen <corinna@vinschen.de>
Wed, 14 Jun 2017 08:57:02 +0000 (10:57 +0200)
commit0a9edd73e3abb85162f9d79bc57cf4df1f9d8f1e
tree3dd39e213dda7b95e28a4766e194a7f596c6285e
parent35cd6863fb3a970507b5eaf587eda59abcefb241
readdir() with mount point dentry, return mount point INO

This patch fixes a minor compatibility issue w/ cygwin mount point handling in
readdir(), compared to equivalent behavior of Linux and MacOS. dentry.d_ino
should indicate the INO of the mount point itself, not the target volume root
folder.

Changed return type from readdir_check_reparse_point to uint8_t, to avoid
unnecessarily being implicitly cast to and from a signed int.

Renamed a related local variable "attr" to "oattr" that was eclipsing a member
variable with the same name.

Joe L.
winsup/cygwin/fhandler_disk_file.cc
This page took 0.028503 seconds and 5 git commands to generate.