mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-22 19:14:51 +00:00
getname_flags() massage, part 1
In case of long name don't reread what we'd already copied. memmove() it instead. That avoids the possibility of ending up with empty name there and the need to look at the flags on the slow path. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
ca2a04e84a
commit
8ba29c85e2
1 changed files with 16 additions and 17 deletions
33
fs/namei.c
33
fs/namei.c
Loading…
Add table
Add a link
Reference in a new issue