bug-cfengine
[Top][All Lists]
Advanced

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

Re: FileExists bug 2.1.3 thru 2.1.10 (at least)


From: Mark . Burgess
Subject: Re: FileExists bug 2.1.3 thru 2.1.10 (at least)
Date: Thu, 28 Oct 2004 12:52:54 +0200 (MEST)

Fixet in 2.1.11, as long as you quote the expression.

M

On 27 Oct, Jerry G. DeLapp wrote:
> The following code snippet in functions.c
> 
> if (strchr(args,','))
>    {
>    yyerror("Illegal argument to unary class-function");
>    return;
>    }
> 
> Means that the following statement:
> 
> class = FileExists(/a/directory/with/an/RCS/file,v)
> 
> will throw the yyerror above instead of actually doing the stat.  The logic 
> of 
> HandleStatInfo is forbidding the perfectly valid (*nix) filename character 
> ','.
> 
> A more detailed reading of HandleStatInfo and its invocation makes me think 
> that the strchr/yyerror clause shouldn't be there at all.  A patch to dump 
> that clause is attached.
> 
> I did not check versions prior to 2.1.3 or the latest CVS repository.
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Work: +47 22453272            Email:  address@hidden
Fax : +47 22453205            WWW  :  http://www.iu.hio.no/~mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~





reply via email to

[Prev in Thread] Current Thread [Next in Thread]