From 1620040c3b1a4c4f6762d7e606a83c9f5ab8ebff Mon Sep 17 00:00:00 2001 From: Benjamin Marzinski Date: Fri, 11 Nov 2011 22:54:26 -0600 Subject: [PATCH] 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 --- libmultipath/alias.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", -- 2.7.4