From: Benjamin Marzinski Date: Sat, 12 Nov 2011 04:54:26 +0000 (-0600) Subject: multipath: rlookup WWIDs with spaces by alias X-Git-Tag: upstream/0.5.0~72 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1620040c3b1a4c4f6762d7e606a83c9f5ab8ebff;p=platform%2Fupstream%2Fmultipath-tools.git multipath: rlookup WWIDs with spaces by alias If a WWID contained spaces, the rlookup code wasn't able to look it up by its user_friendly_name, since the code was only reading the wwid till the first space. It now reads to the end of the line. Signed-off-by: Benjamin Marzinski --- diff --git a/libmultipath/alias.c b/libmultipath/alias.c index 4159ec6..16ba220 100644 --- a/libmultipath/alias.c +++ b/libmultipath/alias.c @@ -288,7 +288,7 @@ rlookup_binding(FILE *f, char **map_wwid, char *map_alias) curr_id = scan_devname(alias, NULL); /* TBD: Why this call? */ if (curr_id >= id) id = curr_id + 1; - wwid = strtok(NULL, " \t"); + wwid = strtok(NULL, ""); if (!wwid){ condlog(3, "Ignoring malformed line %u in bindings file",