aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-01-09 08:22:51 +0000
committerChristopher Faylor <me@cgf.cx>2003-01-09 08:22:51 +0000
commit6a28966e5717e3e5c02925a152aa7057118de952 (patch)
tree588791d0e74162a6b8fddb71813bdb3fe08022e7
parent2cfd4ca2295ec8dbc0ac7178e749ca1ecf817385 (diff)
downloadnewlib-unlabeled-1.35.12.zip
newlib-unlabeled-1.35.12.tar.gz
newlib-unlabeled-1.35.12.tar.bz2
-rw-r--r--winsup/cygwin/fhandler_disk_file.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_disk_file.cc b/winsup/cygwin/fhandler_disk_file.cc
index 9c6aadb..f25df3d 100644
--- a/winsup/cygwin/fhandler_disk_file.cc
+++ b/winsup/cygwin/fhandler_disk_file.cc
@@ -617,7 +617,7 @@ fhandler_disk_file::opendir (path_conv& real_name)
dir->__d_u.__d_data.__fh = this;
/* FindFirstFile doesn't seem to like duplicate /'s. */
len = strlen (dir->__d_dirname);
- if (len == 0 || SLASH_P (dir->__d_dirname[len - 1]))
+ if (len == 0 || isdirsep (dir->__d_dirname[len - 1]))
strcat (dir->__d_dirname, "*");
else
strcat (dir->__d_dirname, "\\*"); /**/