Eric, that is very generous of you. Do let me know if this patch
should be included in the sources.
best
M
Eric Sorenson wrote:
> On Wed, 25 Apr 2007, [EMAIL PROTECTED] wrote:
>
>> I'm having a very VERY annoying problem with "tidy". This may be a
>> feature, but it feels like a bug.
>
> I spent a little time duplicating this. The problem is that completing
> the first tidypattern sets the global 'done' field so none of the
> subsequent ones get acted upon. Please try the following patch:
>
> --- do.c.orig 2007-04-25 17:32:42.961639974 -0700
> +++ do.c 2007-04-25 18:16:53.344517278 -0700
> @@ -1153,7 +1153,14 @@
> Debug("\nTidying from base directory %s\n",tp->path);
> basename[0] = '\0';
> ExpandWildCardsAndDo(tp->path,basename,TidyWrapper,tp);
> - tp->done = 'y';
> + if (tp->tidylist->next != NULL)
> + {
> + tp->done = 'n';
> + }
> + else
> + {
> + tp->done = 'y';
> + }
> }
> else
> {
>
>
--
Mark Burgess
Professor of Network and System Administration
Oslo University College
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Work: +47 22453272 Email: [EMAIL PROTECTED]
Fax : +47 22453205 WWW : http://www.iu.hio.no/~mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_______________________________________________
Bug-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/bug-cfengine