]> git.baikalelectronics.ru Git - kernel.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>
Wed, 20 Mar 2013 20:45:16 +0000 (16:45 -0400)
commitb9a1d000732b6a0fba036a1d860eb86994790978
tree28c52dbb7cbdcf0f02aaca0c4c0b2e1c28250f1a
parent5d5acf7f3e8c669857f1288b923731e4b4ceb550
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 a1eb0af6c2b694f9c5daf7d8aff719dec44f397c
(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