This is the same issue as in the previous mail. See patch for escaping
the colon, or change your Split character.

M

Jim Wight wrote:
> I have the following shellcommands line:
> 
> "/sbin/iptables-save | /bin/grep -q '^:INPUT DROP' || /bin/echo 'iptables 
> disabled?'"
> 
> which has worked through several versions until 2.2.2. The message I'm
> now getting is:
> 
> ...: scripts or commands must have absolute path names
> ...: concerns: INPUT DROP' || /bin/echo 'iptables disabled?'
> 
> It seems to me, without digging into it in detail, that cfengine is
> treating single and double quotes interchangeably - so that the single
> quote after -q matches the leading double quote.
> 
> Is this a bug or an intended change of behaviour?
> 
> I notice that Build2DListFromVarstring in 2Dlist.c, which I think is
> where the problem is, has undergone a bit of a rewrite since 2.2.1.
> 
> Jim
> 
> 
> _______________________________________________
> Bug-cfengine mailing list
> [email protected]
> https://cfengine.org/mailman/listinfo/bug-cfengine

-- 
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

Reply via email to