ifcfg-rh: unescape ifcfg value for CIPHER_GROUP/CIPHER_PAIRWISE
It's not clear why we would read the CIPHER_GROUP/CIPHER_PAIRWISE verbatim=TRUE (without shell unescaping). Especially since ifcfg-rh writer does svSetValue (ifcfg, "CIPHER_PAIRWISE", str->str, FALSE);
This commit is contained in:
@@ -2358,16 +2358,10 @@ fill_wpa_ciphers (shvarFile *ifcfg,
|
||||
char **list = NULL, **iter;
|
||||
int i = 0;
|
||||
|
||||
p = value = svGetValue (ifcfg, group ? "CIPHER_GROUP" : "CIPHER_PAIRWISE", TRUE);
|
||||
p = value = svGetValue (ifcfg, group ? "CIPHER_GROUP" : "CIPHER_PAIRWISE", FALSE);
|
||||
if (!value)
|
||||
return TRUE;
|
||||
|
||||
/* Strip quotes */
|
||||
if (p[0] == '"')
|
||||
p++;
|
||||
if (p[strlen (p) - 1] == '"')
|
||||
p[strlen (p) - 1] = '\0';
|
||||
|
||||
list = g_strsplit_set (p, " ", 0);
|
||||
for (iter = list; iter && *iter; iter++, i++) {
|
||||
/* Ad-Hoc configurations cannot have pairwise ciphers, and can only
|
||||
|
Reference in New Issue
Block a user