|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?
From: Martin A. Brooks [mailto:address@hidden]
Sent: Thursday, November 27, 2003 11:54 AM
Subject: FileExists bug
We've found what appears to be a bug with cfengine 2.1.0p1 and FileExists.
We were trying to do this:
HashBash = ( FileExists(/usr/local/bin/bash) )
Regardless of whether the file existed or not, script.sh was always
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.
Martin A. Brooks.
Bug-cfengine mailing list
|[Prev in Thread]||Current Thread||[Next in Thread]|