ifcfg-rh: escape colon in generated filename

A colon indicates an alias file. It should be escaped.
This commit is contained in:
Thomas Haller 2015-06-01 17:09:25 +02:00
parent 8be9e832b5
commit 2e87df8408

View file

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