[SSSD] [PATCH] INI: Disable line-wrapping functionality

Jakub Hrozek jhrozek at redhat.com
Thu Oct 10 09:21:52 UTC 2013


As Dmitri noted in a thread on sssd-users, we did an incompatible change
in how we handle lines beginning with whitespace. Since the change is
breaking existing configurations, we should revert the change.

There is a separate ticket to consider the line wrapping functionality:
https://fedorahosted.org/sssd/ticket/2118
-------------- next part --------------
>From 24eee81ead698b3267440e0134cdea162ea41125 Mon Sep 17 00:00:00 2001
From: Jakub Hrozek <jhrozek at redhat.com>
Date: Thu, 10 Oct 2013 10:56:02 +0200
Subject: [PATCH] INI: Disable line-wrapping functionality

Supporting the latest INI release brought an incompatible change. Lines
beginning with a whitespace were treated as continuation of the previous
line. This patch reverts to ignoring the whitespace as we did previously
so that the existing configurations keep working.
---
 src/util/sss_ini.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/util/sss_ini.c b/src/util/sss_ini.c
index 6d93b16e365db94e8efc856b66841c8fd2d6c772..9f23500ab0142104cf4767d2b8e7598f25d345ce 100644
--- a/src/util/sss_ini.c
+++ b/src/util/sss_ini.c
@@ -223,7 +223,7 @@ int sss_ini_get_config(struct sss_ini_initdata *init_data,
     ret = ini_config_parse(init_data->file,
                            INI_STOP_ON_ANY,
                            INI_MV1S_OVERWRITE,
-                           0,
+                           INI_PARSE_NOWRAP,
                            init_data->sssd_config);
 
     if (ret != EOK) {
-- 
1.8.3.1



More information about the sssd-devel mailing list