File 02f5bef6-sssd-semicolon.patch of Package augeas.6793

From 02f5bef6efb93b8d1a6e65c97a7042de8d185dfa Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rapha=C3=ABl=20Pinson?= <raphael.pinson@camptocamp.com>
Date: Thu, 17 Apr 2014 13:38:13 +0200
Subject: [PATCH] Sssd: Allow ; for comments

---
 lenses/sssd.aug            | 2 +-
 lenses/tests/test_sssd.aug | 2 ++
 3 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/lenses/sssd.aug b/lenses/sssd.aug
index 49f5e07..d854554 100644
--- a/lenses/sssd.aug
+++ b/lenses/sssd.aug
@@ -14,7 +14,7 @@ About: Configuration files
 module Sssd =
   autoload xfm
 
-let comment  = IniFile.comment "#" "#"
+let comment  = IniFile.comment /[#;]/ "#"
 
 let sep      = IniFile.sep "=" "="
 
diff --git a/lenses/tests/test_sssd.aug b/lenses/tests/test_sssd.aug
index aaea588..b5ea771 100644
--- a/lenses/tests/test_sssd.aug
+++ b/lenses/tests/test_sssd.aug
@@ -11,6 +11,7 @@ module Test_sssd =
 
 let conf = "[domain/example.com]
 #Comment here
+; another comment
 cache_credentials = True
 krb5_store_password_if_offline = True
 ipa_server = _srv_, ipa.example.com
@@ -27,6 +28,7 @@ domains = example.com
 test Sssd.lns get conf =
     { "target" = "domain/example.com" 
 	{ "#comment" = "Comment here" }
+	{ "#comment" = "another comment" }
 	{ "cache_credentials" = "True" }
 	{ "krb5_store_password_if_offline" = "True" }
 	{ "ipa_server" = "_srv_, ipa.example.com" }
-- 
2.6.6
openSUSE Build Service is sponsored by