Skip to content
Commit 0aeae33f authored by J. Bruce Fields's avatar J. Bruce Fields
Browse files

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: default avatarJ. Bruce Fields <bfields@redhat.com>
parent b829e919
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment