Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/dir.cc')
-rw-r--r--winsup/cygwin/dir.cc10
1 files changed, 4 insertions, 6 deletions
diff --git a/winsup/cygwin/dir.cc b/winsup/cygwin/dir.cc
index a044f53f9..247216d3a 100644
--- a/winsup/cygwin/dir.cc
+++ b/winsup/cygwin/dir.cc
@@ -19,8 +19,8 @@ details. */
#include "pinfo.h"
#include "cygerrno.h"
#include "security.h"
-#include "fhandler.h"
#include "path.h"
+#include "fhandler.h"
#include "dtable.h"
#include "cygheap.h"
@@ -84,15 +84,13 @@ extern "C" DIR *
opendir (const char *name)
{
fhandler_base *fh;
- path_conv pc;
DIR *res;
- fh = cygheap->fdtab.build_fhandler_from_name (-1, name, NULL, pc,
- PC_SYM_FOLLOW | PC_FULL, NULL);
+ fh = build_fh_name (name, NULL, PC_SYM_FOLLOW | PC_FULL);
if (!fh)
res = NULL;
- else if (pc.exists ())
- res = fh->opendir (pc);
+ else if (fh->exists ())
+ res = fh->opendir ();
else
{
set_errno (ENOENT);