[PATCH 4/8] Log problem line if unquoting failed in readNetInfo()

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

 



Log the entire line if value unquoting failed in readNetInfo().  Should
help users figure out why the shell variables are wrong in the ifcfg
file.

Related: rhbz#522064
---
 loader/loader.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/loader/loader.c b/loader/loader.c
index c828b96..a573b23 100644
--- a/loader/loader.c
+++ b/loader/loader.c
@@ -684,8 +684,9 @@ static void readNetInfo(struct loaderData_s ** ld) {
             gchar *val = g_shell_unquote(pair[1], &e);
 
             if (e != NULL) {
-                logMessage(WARNING, "error reading %s from %s: %s",
-                           pair[0], cfgfile, e->message);
+                logMessage(WARNING,
+                           "error reading %s from %s (line=%s): %s",
+                           pair[0], cfgfile, tmp, e->message);
                 g_error_free(e);
             }
 
-- 
1.6.6.1

_______________________________________________
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