Commit eb94582289e914a4dc2947a49bb16045c2b6d5c4

Eric Blake 2011-05-09T16:27:35

openat: reduce syscalls in first probe of /proc open/access/close is cheaper than open/stat/stat/close. Use O_DIRECTORY for safety. * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd be a directory. Simplify the probe for .. bugs. * modules/openat (Depends-on): Drop same-inode. Reported by Bastien ROUCARIES. Signed-off-by: Eric Blake <eblake@redhat.com>