]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5e5b88dd306279b3e82b94406e09ea8aad858ba3
treed98ac0a392cf9abc1bbc3363448c8e072504c6a4
parent08cac09147242be5c98540d5ac2873556294977a
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