]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: terminate readlink result in resapwn 1729/head
authorSage Weil <sage@inktank.com>
Sat, 26 Apr 2014 02:46:24 +0000 (19:46 -0700)
committerSage Weil <sage@inktank.com>
Sat, 26 Apr 2014 02:46:24 +0000 (19:46 -0700)
commit5d497826f92c2000e68a706a87276432890a1fab
tree6f29b9007e238298ffacfe188685058b7450f5c7
parent58d7640d25963690400643ad9bf6d1b3f9897f37
mds: terminate readlink result in resapwn

readlink(2) does not null terminate the buffer; we need to do that.

Fixes: #7966
Signed-off-by: Sage Weil <sage@inktank.com>
src/mds/MDS.cc