]> git.baikalelectronics.ru Git - kernel.git/commit
New AT_... flag: AT_EMPTY_PATH
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 14 Mar 2011 22:56:51 +0000 (18:56 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 14 Mar 2011 23:12:20 +0000 (19:12 -0400)
commit955bbc6bd40d654c059e807b1e4fdf1b424f6e52
treeb04070034f8a941fe5d7e9e1b335a02784686bd5
parentf760f10ec4c2468671afac5d04f2a6f58a7479dc
New AT_... flag: AT_EMPTY_PATH

For name_to_handle_at(2) we'll want both ...at()-style syscall that
would be usable for non-directory descriptors (with empty relative
pathname).  Introduce new flag (AT_EMPTY_PATH) to deal with that and
corresponding LOOKUP_EMPTY; teach user_path_at() and path_init() to
deal with the latter.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namei.c
include/linux/fcntl.h
include/linux/namei.h