HomeFreeBSD

aio_md_test: NUL-terminate result of readlink

Description

aio_md_test: NUL-terminate result of readlink

readlink does not NUL-terminate the output buffer. This led to spurious
failures to destroy the md device because the unit number was garbage.
NUL-terminate the output buffer.

Reported by: ASLR
MFC after: 1 week
Sponsored by: Dell EMC Isilon

Details

Provenance
vangyzenAuthored on Jul 23 2021, 1:49 PM
Parents
rGc6f92e64b614: aio_md_test: fix cleanup
Branches
Unknown
Tags
Unknown