libmultipath: parse_vpd_pg80: fix whitespace handling
authorMartin Wilck <mwilck@suse.com>
Mon, 24 Jun 2019 09:27:50 +0000 (11:27 +0200)
committerChristophe Varoqui <christophe.varoqui@opensvc.com>
Wed, 3 Jul 2019 06:32:01 +0000 (08:32 +0200)
According to the SPC spec, the unit serial number is right-aligned
ASCII. Thus leading whitespace must be skipped. Moreover, trailing
whitespace should be discarded before doing the length check.

Fixes: 756ef73b7197 "Separate out vpd parsing functions"
Signed-off-by: Martin Wilck <mwilck@suse.com>

No differences found