readlinkat(), fchownat() and fstatat() with empty relative pathnames
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 13 Mar 2011 19:56:26 +0000 (15:56 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 15 Mar 2011 06:21:45 +0000 (02:21 -0400)
commit65cfc6722361570bfe255698d9cd4dccaf47570d
treed98ac0a392cf9abc1bbc3363448c8e072504c6a4
parentbcda76524cd1fa32af748536f27f674a13e56700
readlinkat(), fchownat() and fstatat() with empty relative pathnames

For readlinkat() we simply allow empty pathname; it will fail unless
we have dfd equal to O_PATH-opened symlink, so we are outside of
POSIX scope here.  For fchownat() and fstatat() we allow AT_EMPTY_PATH;
let the caller explicitly ask for such behaviour.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/open.c
fs/stat.c