No, the code is doing something quite stupid, as I found out running it under
strace
(strace -f -o cfengine.log cfagent --verbose --no-splay). You can see the
following in the log:
28715 execve("LANG=C", ["LANG=C", "/usr/bin/apt-cache", "policy", "arpwatch"],
[/* 17 vars */] <unfinished ...>
28639 _llseek(3, 0, <unfinished ...>
28715 <... execve resumed> ) = -1 ENOENT (No such file or directory)
28639 <... _llseek resumed> 0xbfaabcd0, SEEK_CUR) = -1 ESPIPE (Illegal seek)
28715 write(1, "cfengine:hspc05: Couldn\'t run LA"..., 37 <unfinished ...>
That means, rather than executing "/usr/bin/apt-cache", it executes "LANG=C"
with the
argv[] array ["LANG=C", "/usr/bin/apt-cache", "policy", "arpwatch"]. Something
is
VERY WRONG with that code.
--
Test for installed packages in cfengine is broken
https://bugs.launchpad.net/bugs/232450
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs