]> git.sesse.net Git - vlc/commit
file: use the same open() path for directories as for regular files
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 16 Jan 2010 11:25:23 +0000 (13:25 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 16 Jan 2010 11:25:23 +0000 (13:25 +0200)
commit41351df4184fe51ea70aa14e3b4c459ad7608ba0
treec6451352adb3e1755d266b8abe69b66bcdb9af78
parent09775b176b5ed30fa028398fda582f5d83bc1f47
file: use the same open() path for directories as for regular files

This requires support for fdopendir(). One open() and fstat() calls per
input file are avoided. Ok, this is not such a major improvement).
This should also work around brain-damaged file system drivers such as
Linux HFS+, whereby opendir() succeeds on regular files.
configure.ac
modules/access/file.c