diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2012-04-03 11:28:48 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2012-04-03 11:28:48 +0400 |
commit | f777ddfbe3d65832d4e654984ae5e0724b767717 (patch) | |
tree | b1d5e7abb6fa5c5968c3fd01f478e8f0064c3b4d /winsup/cygwin/syscalls.cc | |
parent | 17a61045ffe0acdbdb0f84ddfc34d3eb47666e57 (diff) |
* syscalls.cc (fhandler_base::stat_fixup): Replace string comparison
with new device::is_dev_resident() call.
Diffstat (limited to 'winsup/cygwin/syscalls.cc')
-rw-r--r-- | winsup/cygwin/syscalls.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc index e70bb9772..3ea4a6f8b 100644 --- a/winsup/cygwin/syscalls.cc +++ b/winsup/cygwin/syscalls.cc @@ -1601,7 +1601,7 @@ fhandler_base::stat_fixup (struct __stat64 *buf) assuming that /dev doesn't change over the lifetime of a process. */ if (!buf->st_dev) { - if (!strncmp (dev ().name, "/dev/", 5)) + if (dev ().is_dev_resident ()) { if (!dev_st_inited) { |