* fhandler_disk_file.cc (fhandler_base::fstat_helper): Set st_rdev

to correct device number for fs_special devices.
This commit is contained in:
Corinna Vinschen 2010-08-18 10:10:14 +00:00
parent 0f0a0b7361
commit d15ed91c04
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2010-08-18 Corinna Vinschen <corinna@vinschen.de>
* fhandler_disk_file.cc (fhandler_base::fstat_helper): Set st_rdev
to correct device number for fs_special devices.
2010-08-16 Corinna Vinschen <corinna@vinschen.de>
* include/cygwin/version.h: Bump DLL minor version number to 6.

View File

@ -633,7 +633,7 @@ fhandler_base::fstat_helper (struct __stat64 *buf,
buf->st_mode |= S_IFREG;
else
{
buf->st_dev = dev ();
buf->st_dev = buf->st_rdev = dev ();
buf->st_mode = dev ().mode;
buf->st_size = 0;
}
@ -652,7 +652,7 @@ fhandler_base::fstat_helper (struct __stat64 *buf,
/* nothing */;
else if (is_fs_special ())
{
buf->st_dev = dev ();
buf->st_dev = buf->st_rdev = dev ();
buf->st_mode = dev ().mode;
buf->st_size = 0;
}