mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-28 07:30:10 +01:00
ifcfg-rh: allow leading spaces before variable names
This commit is contained in:
parent
afc394b969
commit
85beac6dd4
1 changed files with 5 additions and 0 deletions
|
|
@ -333,6 +333,11 @@ find_line (shvarFile *s, const char *key)
|
|||
|
||||
for (s->current = s->lineList; s->current; s->current = s->current->next) {
|
||||
line = s->current->data;
|
||||
|
||||
/* skip over leading spaces */
|
||||
while (g_ascii_isspace (line[0]))
|
||||
line++;
|
||||
|
||||
if (!strncmp (key, line, len) && line[len] == '=')
|
||||
return line + len + 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue