bug-cfengine
[Top][All Lists]
Advanced

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

RE: FileExists bug


From: Schoultz, Rickard
Subject: RE: FileExists bug
Date: Thu, 27 Nov 2003 13:04:14 +0100

Note that there is a typo in your problem description;
you define "HashBash", and tests for "HasBash". Are those
the same lines that as used in your tests?

Best regards,
-Rickard

-----Original Message-----
From: Martin A. Brooks [mailto:address@hidden]
Sent: Thursday, November 27, 2003 11:54 AM
To: address@hidden
Subject: FileExists bug


Hi

We've found what appears to be a bug with cfengine 2.1.0p1 and FileExists.

We were trying to do this:

groups:

    HashBash = ( FileExists(/usr/local/bin/bash) )

shellcommands:

    !HasBash::
        "/run/some/script.sh"

Regardless of whether the file existed or not, script.sh was always
being executed.

We tried a lot of different methods for defining and negating the class
but eventually we found that the only way to get it to work was to not
use FileExists.  Instead we are now using:

HasBash = ( '/bin/test -e /usr/local/bin/bash' )

This works as we expected the FileExists version to, which implies a bug
with the FileExists function.  The operating system is FreeBSD 4.9 on
the server and FreeBSD 4.7 on the clients.

If you need more information, please let me know.

Regards

Martin A. Brooks.
          



_______________________________________________
Bug-cfengine mailing list
address@hidden http://mail.gnu.org/mailman/listinfo/bug-cfengine


reply via email to

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