Fix for parsing multipath.conf files without spaces before brackets
authorBenjamin Marzinski <bmarzins@redhat.com>
Thu, 11 Dec 2008 22:10:27 +0000 (16:10 -0600)
committerChristophe Varoqui <christophe.varoqui@free.fr>
Thu, 11 Dec 2008 22:53:43 +0000 (23:53 +0100)
commit6c13ede68e0cb8f1f8312c875047b991b6b86ca1
tree2cb0044256a429f86429c57f051c5afdc68e62cc
parentd31664614a5b5ee4e4b1d10915423350a8082c1a
Fix for parsing multipath.conf files without spaces before brackets

There's a bug in bug in the multipath.conf code that keeps multipath from
correctly parsing config files where there is no space between a section name
and the opening bracket. For instance

devices {
device {
...
}
}

works but

devices {
device{
...
}
}

doesn't. This patch makes sure that brackets are the recognized as seperate from
the token that they follow, unless they are part of a quoted string.

Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
libmultipath/parser.c