Browse Source

MT#61352 strip leading spaces in interfaces

Avoids parsing errors and allows 'xx ; xx' syntax in config file

Change-Id: I1eed84bdcd280393d1fad12ade4cdb598f0ecd1c
pull/1876/head
Richard Fuchs 1 year ago
parent
commit
9f019fd7fe
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      daemon/main.c

+ 3
- 0
daemon/main.c View File

@ -275,6 +275,9 @@ static int if_addr_parse(intf_config_q *q, char *s, struct ifaddrs *ifas) {
GQueue addrs = G_QUEUE_INIT;
struct intf_config *ifa;
while (*s == ' ')
s++;
/* name */
c = strpbrk(s, "/=");
if (c) {


Loading…
Cancel
Save