diff options
Diffstat (limited to 'winsup/cygwin/dir.cc')
-rw-r--r-- | winsup/cygwin/dir.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/winsup/cygwin/dir.cc b/winsup/cygwin/dir.cc index 9e154b010..f55cbe31e 100644 --- a/winsup/cygwin/dir.cc +++ b/winsup/cygwin/dir.cc @@ -78,8 +78,7 @@ opendir (const char *dirname) goto failed; } - if (stat (cygheap->root.length () ? dirname : real_dirname.get_win32 (), - &statbuf) == -1) + if (stat (real_dirname, &statbuf) == -1) goto failed; if (!(statbuf.st_mode & S_IFDIR)) @@ -88,7 +87,7 @@ opendir (const char *dirname) goto failed; } - len = strlen (real_dirname.get_win32 ()); + len = strlen (real_dirname); if (len > MAX_PATH - 3) { set_errno (ENAMETOOLONG); |