mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-03 05:50:12 +01:00
ifcfg-rh: escape colon in generated filename
A colon indicates an alias file. It should be escaped.
This commit is contained in:
parent
8be9e832b5
commit
2e87df8408
1 changed files with 1 additions and 1 deletions
|
|
@ -2530,7 +2530,7 @@ escape_id (const char *id)
|
|||
while (*p) {
|
||||
if (*p == ' ')
|
||||
*p = '_';
|
||||
else if (strchr ("\\][|/=()!", *p))
|
||||
else if (strchr ("\\][|/=()!:", *p))
|
||||
*p = '-';
|
||||
p++;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue