[PATCH master f14-branch 2/2] readvars should split variables into at most 2 pieces

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This lets it handle things like:

repo=hd:UUID=A1EA-85CC:/
stage2=hd:LABEL="Fedora"
---
 loader/readvars.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/loader/readvars.c b/loader/readvars.c
index b453175..da175c3 100644
--- a/loader/readvars.c
+++ b/loader/readvars.c
@@ -62,7 +62,7 @@ GHashTable *readvars_parse_string(gchar *contents) {
     }
 
     while (i < argc) {
-        gchar **tokens = g_strsplit(argv[i], "=", 0);
+        gchar **tokens = g_strsplit(argv[i], "=", 2);
         guint len = g_strv_length(tokens);
         gchar *key = NULL, *value = NULL;
         e = NULL;
-- 
1.7.2.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux