On Fri, May 02, 2008 at 06:13:00PM +0100, Oleg Verych wrote: > open() will change timestamp. `bash` and `dash` have very broken > workarounds of access() in `test` due to euid requirements. I.e. > read-only fs for root or various > selinux-like restrictions are not shown unless open() is used. > > So, it's better just to use stat64(), right? I don't think stat64 will tell you about selinux or rofs restrictions. But if the shell is interpreting code, I would bet that a couple of euid changes aren't going to make even a blip in the overall performance profile. If I'm wrong, please show me! -- Intel are signing my paycheques ... these opinions are still mine "Bill, look, we understand that you're interested in selling us this operating system, but compare it to ours. We can't possibly take such a retrograde step." -- 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