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

Re: [augeas-devel] Patch for Samba.aug



http://www.samba.org/samba/docs/man/manpages-3/smb.conf.5.html
"""
FILE FORMAT

 The file consists of sections and parameters. A section begins with the name of the section in square brackets and continues until the next section begins. Sections contain parameters of the form:
name = value
.....
"""

No mention of : anywhere. Don't think samba likes ":" for separator. 

Partha

----- Original Message -----
From: "David Lutterkort" <lutter redhat com>
To: "Partha Aji" <paji redhat com>
Cc: "augeas-devel" <augeas-devel redhat com>
Sent: Monday, December 7, 2009 12:49:36 PM GMT -05:00 US/Canada Eastern
Subject: Re: [augeas-devel] Patch for Samba.aug

On Fri, 2009-12-04 at 15:20 -0500, Partha Aji wrote:
> The samba augeas lens had issues dealing with entry key names that had ':' in them like,
> 		recycle:repository = .recycle
> 		recycle:keeptree = yes
> 		recycle:versions = yes
> 
> The attached patch fixes this issue. 


> diff --git a/lenses/samba.aug b/lenses/samba.aug
> index 4b303f6..28b9cf1 100644
> --- a/lenses/samba.aug
> +++ b/lenses/samba.aug
> @@ -14,7 +14,7 @@ module Samba =
>   *************************************************************************)
>  
>  let comment  = IniFile.comment IniFile.comment_re IniFile.comment_default
> -let sep      = del /[ \t]*[=:]/ " ="
> +let sep      = del /[ \t]*[=]/ " ="
>  let indent   = del /[ \t]*/ "   "

Why the change to sep ? Can ':' be used for the same purpose as '=' ?

David




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