[dm-devel] [PATCH 06/42] Accept several whitespaces in bindings file
Hannes Reinecke
hare at suse.de
Tue Jan 8 13:53:44 UTC 2013
Prior versions of multipathd would accept several whitespaces
in the bindings file.
Signed-off-by: Hannes Reinecke <hare at suse.de>
---
libmultipath/alias.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libmultipath/alias.c b/libmultipath/alias.c
index e1f3073..2b42606 100644
--- a/libmultipath/alias.c
+++ b/libmultipath/alias.c
@@ -99,7 +99,7 @@ lookup_binding(FILE *f, char *map_wwid, char **map_alias, char *prefix)
curr_id = scan_devname(alias, prefix);
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",
--
1.7.4.2
More information about the dm-devel
mailing list