"man readdir" also says:

       Currently,  only  some  filesystems (among them: Btrfs, ext2, ext3, and
       ext4) have full support for returning the file  type  in  d_type.   All
       applications must properly handle a return of DT_UNKNOWN.

You need to do an lstat in this case, as you said.  This is the expected
behavior.

This has absolutely nothing to do with gnome-terminal.

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-terminal in Ubuntu.
https://bugs.launchpad.net/bugs/1321091

Title:
  readdir function returns inconsistent d_type

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-terminal/+bug/1321091/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to