summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fhandler_dev.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/fhandler_dev.cc')
-rw-r--r--winsup/cygwin/fhandler_dev.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/winsup/cygwin/fhandler_dev.cc b/winsup/cygwin/fhandler_dev.cc
index 44061e050..9d8750436 100644
--- a/winsup/cygwin/fhandler_dev.cc
+++ b/winsup/cygwin/fhandler_dev.cc
@@ -208,11 +208,10 @@ fhandler_dev::readdir (DIR *dir, dirent *de)
{
/* Make sure conin, conout, and console have the same inode number
as the current consX. */
- dev.parse (myself->ctty);
- de->d_ino = hash_path_name (0, dev.native);
+ de->d_ino = myself->ctty;
}
else
- de->d_ino = hash_path_name (0, curdev->native);
+ de->d_ino = curdev->get_device ();
de->d_type = curdev->type ();
ret = 0;
break;