]> git.karo-electronics.de Git - karo-tx-linux.git/commit
NFSv4: Fix the string length returned by the idmapper
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 8 Mar 2013 17:56:37 +0000 (12:56 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 8 Mar 2013 18:31:45 +0000 (13:31 -0500)
commit90eabc5dfde58de5c37de3866f427da02e86ce17
tree014fe37a701a688667940118173f38e7bc16af8a
parent724bf7a71b44145811a1fec3b20a26bd1edae51b
NFSv4: Fix the string length returned by the idmapper

Functions like nfs_map_uid_to_name() and nfs_map_gid_to_group() are
expected to return a string without any terminating NUL character.
Regression introduced by commit 57e62324e469e092ecc6c94a7a86fe4bd6ac5172
(NFS: Store the legacy idmapper result in the keyring).

Reported-by: Dave Chiluk <dave.chiluk@canonical.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: Bryan Schumaker <bjschuma@netapp.com>
Cc: stable@vger.kernel.org [>=3.4]
fs/nfs/idmap.c