]> git.baikalelectronics.ru Git - kernel.git/commit
fs: rework getname_kernel to handle up to PATH_MAX sized filenames
authorPaul Moore <pmoore@redhat.com>
Thu, 22 Jan 2015 04:59:56 +0000 (23:59 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 23 Jan 2015 05:22:20 +0000 (00:22 -0500)
commit3c206f842c7106aed74199b67348a006aef9f712
tree80ac5b25e4b113fb80125c01e26e846f5fde4b98
parentf3eef213c3fea04bd91302d4f2b4ad132e9cf810
fs: rework getname_kernel to handle up to PATH_MAX sized filenames

In preparation for expanded use in the kernel, make getname_kernel()
more useful by allowing it to handle any legal filename length.

Thanks to Guenter Roeck for his suggestion to substitute memcpy() for
strlcpy().

CC: linux@roeck-us.net
CC: viro@zeniv.linux.org.uk
CC: linux-fsdevel@vger.kernel.org
Signed-off-by: Paul Moore <pmoore@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namei.c