diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2010-08-18 14:10:14 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2010-08-18 14:10:14 +0400 |
commit | d15ed91c04e3499de636b33ab59443049b94a815 (patch) | |
tree | be00a5fd25b47b946ed384b540aa29de1902f2d4 /winsup/cygwin/fhandler_disk_file.cc | |
parent | 0f0a0b736106aeb16378929be874149f50041e85 (diff) |
* fhandler_disk_file.cc (fhandler_base::fstat_helper): Set st_rdev
to correct device number for fs_special devices.
Diffstat (limited to 'winsup/cygwin/fhandler_disk_file.cc')
-rw-r--r-- | winsup/cygwin/fhandler_disk_file.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/fhandler_disk_file.cc b/winsup/cygwin/fhandler_disk_file.cc index a284b81f9..c860655d5 100644 --- a/winsup/cygwin/fhandler_disk_file.cc +++ b/winsup/cygwin/fhandler_disk_file.cc @@ -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; } |