Browse Source

MT#61352 strip leading spaces in interfaces

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

Change-Id: I1eed84bdcd280393d1fad12ade4cdb598f0ecd1c
(cherry picked from commit 9f019fd7fe)
mr12.5
Richard Fuchs 1 year ago
committed by Donat Zenichev
parent
commit
9555c43bd4
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