]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd: make NFSv2 null terminate symlink data
authorJ. Bruce Fields <bfields@redhat.com>
Fri, 20 Jun 2014 15:49:49 +0000 (11:49 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 8 Jul 2014 21:14:23 +0000 (17:14 -0400)
commit3fa60f13dc77cabe3e73e43ddb7e7a9922d7cc36
treed1d043a76f3cdf14d8a49af70f5c05806bff79a3
parentb69374013877a8b4f56c6c518c1a114af5deec36
nfsd: make NFSv2 null terminate symlink data

It's simple enough for NFSv2 to null-terminate the symlink data.

A bit weird (it depends on knowing that we've already read the following
byte, which is either padding or part of the mode), but no worse than
the conditional kstrdup it otherwise relies on in nfsd_symlink().

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfsproc.c