summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/path.h
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-02-16 00:24:38 +0000
committerChristopher Faylor <me@cgf.cx>2005-02-16 00:24:38 +0000
commit031619634c6811e80c2abff69f4d74928091e6e6 (patch)
tree609b0198b2ebf8cfdba0886eecac38df052e2538 /winsup/cygwin/path.h
parent90d5a18f396daf6d554189a2a13e0512a3b365c0 (diff)
downloadcygnal-031619634c6811e80c2abff69f4d74928091e6e6.tar.gz
cygnal-031619634c6811e80c2abff69f4d74928091e6e6.tar.bz2
cygnal-031619634c6811e80c2abff69f4d74928091e6e6.zip
* path.h (path_conv::issocket): Return true if device == FH_UNIX rather than
expecting path_conv to set a flag.
Diffstat (limited to 'winsup/cygwin/path.h')
-rw-r--r--winsup/cygwin/path.h2
1 files changed, 1 insertions, 1 deletions
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);}