From 031619634c6811e80c2abff69f4d74928091e6e6 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Wed, 16 Feb 2005 00:24:38 +0000 Subject: [PATCH] * path.h (path_conv::issocket): Return true if device == FH_UNIX rather than expecting path_conv to set a flag. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/path.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 26a16ec83..3fba75ed1 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2005-02-15 Christopher Faylor + + * path.h (path_conv::issocket): Return true if device == FH_UNIX rather + than expecting path_conv to set a flag. + 2005-02-11 Corinna Vinschen * fhandler.cc (fhandler_base::raw_write): Mark as changed on diff --git a/winsup/cygwin/path.h b/winsup/cygwin/path.h index 32dc713cc..c8368dfba 100644 --- a/winsup/cygwin/path.h +++ b/winsup/cygwin/path.h @@ -143,7 +143,7 @@ class path_conv int isspecial () const {return dev.devn && dev.devn != FH_FS;} int is_auto_device () const {return isdevice () && !is_fs_special ();} int is_fs_special () const {return isspecial () && dev.isfs ();} - int issocket () const {return path_flags & PATH_SOCKET;} + int issocket () const {return dev.devn == FH_UNIX;} int iscygexec () const {return path_flags & PATH_CYGWIN_EXEC;} bool exists () const {return fileattr != INVALID_FILE_ATTRIBUTES;} bool has_attribute (DWORD x) const {return exists () && (fileattr & x);}