HomeFreeBSD

zdb: Fix handling of nul termination in symlink targets

Description

zdb: Fix handling of nul termination in symlink targets

The SA attribute containing the symlink target does not include a nul
terminator, so when printing the target zdb would sometimes include
garbage at the end of the string.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: Mark Johnston <markj@FreeBSD.org>
Closes #13482

Details

Provenance
markjAuthored on May 20 2022, 5:32 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on May 27 2022, 4:19 PM
Parents
rG96c7c63994a6: automake: don't install /e/d/zfs or /e/z/zfs-functions +x
Branches
Unknown
Tags
Unknown