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>