mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-05 01:47:58 +02:00
ifcfg-rh: escape colon in generated filename
A colon indicates an alias file. It should be escaped.
(cherry picked from commit 2e87df8408)
This commit is contained in:
parent
9feb02d185
commit
da112cc0cc
1 changed files with 1 additions and 1 deletions
|
|
@ -2462,7 +2462,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