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:
Thomas Haller 2015-06-01 17:09:25 +02:00
parent 9feb02d185
commit da112cc0cc

View file

@ -2462,7 +2462,7 @@ escape_id (const char *id)
while (*p) {
if (*p == ' ')
*p = '_';
else if (strchr ("\\][|/=()!", *p))
else if (strchr ("\\][|/=()!:", *p))
*p = '-';
p++;
}