]> www.infradead.org Git - users/sagi/libnvme.git/commit
fabrics: Don't include trailing newline in nvmf_hostnqn_generate()
authorTomas Bzatek <tbzatek@redhat.com>
Wed, 1 Dec 2021 16:38:12 +0000 (17:38 +0100)
committerTomas Bzatek <tbzatek@redhat.com>
Wed, 1 Dec 2021 17:20:04 +0000 (18:20 +0100)
commite104b997a796a4794819d1825905aafe97bbd16f
tree9ae79849d208736cd501e1f7aab8968039523947
parent16c28fa62cc8beaf2ce7c15ec972f2b8ae30bb4c
fabrics: Don't include trailing newline in nvmf_hostnqn_generate()

The generated string is directly used in nvme_lookup_host() and
might cause mismatches due to the inclusion of a trailing newline.
src/nvme/fabrics.c
src/nvme/fabrics.h