* [pbs-devel] [PATCH proxmox-backup] Fix #2926: parse_iface_attributes: always break on non-{attribitue, comment} token
@ 2020-08-12 12:29 Fabian Ebner
0 siblings, 0 replies; only message in thread
From: Fabian Ebner @ 2020-08-12 12:29 UTC (permalink / raw)
To: pbs-devel
There is no requirement to have at least
a blank line, attribute or comment in between two
interface definitions, e.g.
iface lo inet loopback
iface lo inet6 loopback
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
---
src/config/network/parser.rs | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/config/network/parser.rs b/src/config/network/parser.rs
index 071bbcc7..a97d0f79 100644
--- a/src/config/network/parser.rs
+++ b/src/config/network/parser.rs
@@ -210,9 +210,7 @@ impl <R: BufRead> NetworkParser<R> {
self.eat(Token::Newline)?;
continue;
}
- Token::Newline => break,
- Token::EOF => break,
- unexpected => bail!("unexpected token {:?} (expected iface attribute)", unexpected),
+ _ => break,
}
match self.peek()? {
--
2.20.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-08-12 12:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-12 12:29 [pbs-devel] [PATCH proxmox-backup] Fix #2926: parse_iface_attributes: always break on non-{attribitue, comment} token Fabian Ebner
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal