From d89a855e73a6ba51ce88b75b054fdc40b0dca859 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Thu, 30 Dec 2004 16:21:59 +0000 Subject: [PATCH] * devices.cc (device::isfs): Return true for the logical case of devn == FH_FS. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/devices.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index c84d18822..ab702dbb7 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2004-12-30 Christopher Faylor + + * devices.cc (device::isfs): Return true for the logical case of + devn == FH_FS. + 2004-12-28 Christopher Faylor * pinfo.cc (_pinfo::dup_proc_pipe): DUPLICATE_CLOSE_SOURCE closes the diff --git a/winsup/cygwin/devices.h b/winsup/cygwin/devices.h index c01e2306f..f17aeed18 100644 --- a/winsup/cygwin/devices.h +++ b/winsup/cygwin/devices.h @@ -144,7 +144,7 @@ struct device void tty_to_real_device (); inline operator int () const {return devn;} inline void setfs (bool x) {dev_on_fs = x;} - inline bool isfs () const {return dev_on_fs;} + inline bool isfs () const {return dev_on_fs || devn == FH_FS;} }; extern const device *console_dev;