Revert "multipath: rlookup WWIDs with spaces by alias"
authorChristophe Varoqui <christophe.varoqui@opensvc.com>
Tue, 15 Nov 2011 20:39:34 +0000 (21:39 +0100)
committerChristophe Varoqui <christophe.varoqui@opensvc.com>
Tue, 15 Nov 2011 20:39:34 +0000 (21:39 +0100)
This reverts commit 1620040c3b1a4c4f6762d7e606a83c9f5ab8ebff.

wwid can have not whitespace anyway. scsi_id make sure of that.

libmultipath/alias.c

index 16ba220ca16acd2199bff5cc691b74bb3bd878a7..4159ec66b78becc9c7af0feeb63102f185c786dd 100644 (file)
@@ -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, "");
+               wwid = strtok(NULL, " \t");
                if (!wwid){
                        condlog(3,
                                "Ignoring malformed line %u in bindings file",