Re: PROBLEM: hfsplus filesystem allows opendir() on plain files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Brad Boyer wrote:
Maybe the check in the generic code to decide what is a "directory"
should be changed? We could possibly check inode->i_fop->readdir.

Hi Brad,

Thanks for your reply.

This issue came up because at least one major project (the VLC video player) is using 'opendir()' to determine whether or not a path is a file or directory. (They probably ought to be using 'stat()', but they're not, so this issue shows up.)

I've reported it on the VLC forums but only got very dismissive replies. The few developers who posted bluntly said it was a 'kernel bug' so they weren't willing to do anything about it; which is a shame, because it leaves those VLC users with videos on HFS+ drives unable to play their videos with the latest version of VLC.

Anyways, perhaps your suggestion is the right one, in this case.

Cheers
d
--
damian stewart | skype: damiansnz | damian@xxxxxxxxxx
frey | live art with machines | http://www.frey.co.nz
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux