* syscalls.cc (fhandler_base::stat_fixup): Replace string comparison
with new device::is_dev_resident() call.
This commit is contained in:
parent
17a61045ff
commit
f777ddfbe3
@ -1,3 +1,8 @@
|
|||||||
|
2012-04-03 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* syscalls.cc (fhandler_base::stat_fixup): Replace string comparison
|
||||||
|
with new device::is_dev_resident() call.
|
||||||
|
|
||||||
2012-04-02 Christopher Faylor <me.cygwin2012@cgf.cx>
|
2012-04-02 Christopher Faylor <me.cygwin2012@cgf.cx>
|
||||||
|
|
||||||
* devices.h (lives_in_dev): New field.
|
* devices.h (lives_in_dev): New field.
|
||||||
|
@ -1601,7 +1601,7 @@ fhandler_base::stat_fixup (struct __stat64 *buf)
|
|||||||
assuming that /dev doesn't change over the lifetime of a process. */
|
assuming that /dev doesn't change over the lifetime of a process. */
|
||||||
if (!buf->st_dev)
|
if (!buf->st_dev)
|
||||||
{
|
{
|
||||||
if (!strncmp (dev ().name, "/dev/", 5))
|
if (dev ().is_dev_resident ())
|
||||||
{
|
{
|
||||||
if (!dev_st_inited)
|
if (!dev_st_inited)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user