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

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



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


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