In the meantime, Rémi rewrote this bit of code and got rid of O_DIRECTORY: http://git.videolan.org/?p=vlc.git;a=commitdiff;h=54ff6997ce186837319168090a588d543fa35a3e;hp=7222ec271911a579b95ed57b48956787f850e0a7 So there's no need for patching it any more. Maciej