[Freeipa-devel] [PATCH] #403 Handle multiline options in sysconfig.ntpd

Simo Sorce ssorce at redhat.com
Fri Oct 22 16:12:12 UTC 2010


On Thu, 21 Oct 2010 17:07:01 -0400
Simo Sorce <ssorce at redhat.com> wrote:

> On Wed, 20 Oct 2010 22:25:26 -0400
> Rob Crittenden <rcritten at redhat.com> wrote:
> 
> > Simo Sorce wrote:
> > >
> > > In some Fedora versions /etc/sysconfig/ntpd has OPTIONS scattered
> > > on multiple line through shell expansion.
> > > Handle simple cases like that.
> > >
> > > Simo.
> > 
> > I think this will work, it's just one heck of a parser. Is
> > something like the attached a simpler approach?
> > 
> > My version always adds the new options to the first OPTIONS block,
> > I'm not sure if it matters.
> 
> Your solution looks a lot smaller indeed.
> And less is more here!
> I will produce a new patch inspired by this code and post it.
> Self-nack on the current patch.

Ok, new version that adopts your method attached.

Simo.

-- 
Simo Sorce * Red Hat, Inc * New York
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Handle-cases-where-ntpd-options-are-scattered-on-mul.patch
Type: text/x-patch
Size: 3317 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20101022/0e7083b5/attachment.bin>


More information about the Freeipa-devel mailing list