Mailing List archive

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

[vdr] Re: overwriting conf-files...



Andreas Kool wrote:
> 
> On Sun, Aug 17, 2003 at 03:19:11PM +0200, Guido Fiala wrote:
> > Just a thought about all that configuration-files vdr and it's plugins write:
> >
> > For unknown reasons i manage sometimes that at least setup.conf is recreated
> > from scratch - appearantly something during overwriting the file goes wrong
> > and vdr starts up with native values.
> >
> > I suggest, that vdr does'nt simply delete the setup.conf but rename it to
> > setup.conf~ and then rewrite it, similar to many text-editors do...
> >
> > Strange - but so far i observed that problem only with setup.conf.
> 
> I'm sorry, but this is a "bug" in the analogTV-plugin ... i'm working
> on this issue right now!
> 
> @Klaus: Why does'nt VDR permits *empty* string setup entries
> (like "Entry =")?

Well, I guess this wasn't necessary so far.

You could try changing the line

  if (*Name && *Value) {

in cSetupLine::Parse() (config.c) to

  if (*Name) {

I guess this shouldn't have any unwanted side effects and should
tolerate empty values.

Klaus


-- 
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.



Home | Main Index | Thread Index