Package: cfengine2
Version: 2.2.8-1
Severity: normal

*** Please type your report below this line ***

When parsing the admit: section of cfservd.conf, cfservd declares invalid a
declaration found within an undefined class if it contains more than one
hostmask (or a hostmask and another root= or encrypt= statement).

For instance:

=======================
control:
  linux::
    /etc/cfengine   10.0.1 10.0.2
=======================

works, but:

=======================
control:
  !linux::
    /etc/cfengine   10.0.1 10.0.2
=======================

says:
$ /usr/sbin/cfservd -p -f /tmp/cfservd.conf.2
cf:cfservd:/tmp/cfservd.conf.2:3: Missing absolute path to a directory
cfservd:/tmp/cfservd.conf.2:Cannot continue

According to the thread at
http://www.mail-archive.com/bug-cfeng...@cfengine.org/msg00594.html
this appeared somewhere between 2.2.3 and 2.2.5.

I can reproduce this on a lot of machines with Lenny, but the only older
cfengine I have access to is 2.1.20 (and it parses correctly both files).

If you require more information, I'll be happy to assist.

Meanwhile, a workaround that seems to work is making sure all the possibly
undefined classes (practically everything not equal to "any::") have the
declarations split into a list of "/path single-hostmask" or "/path
encrypt=true" pairs, for instance:

=======================
control:
  !linux::
    /etc/cfengine   10.0.1
    /etc/cfengine   10.0.2
=======================


-- System Information:
Debian Release: 5.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/1 CPU core)
Locale: LANG=ro_RO.UTF-8, LC_CTYPE=ro_RO.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages cfengine2 depends on:
ii  debconf [debconf-2.0]         1.5.24     Debian configuration management sy
ii  debianutils                   2.30       Miscellaneous utilities specific t
ii  libc6                         2.7-18     GNU C Library: Shared libraries
ii  libdb4.6                      4.6.21-11  Berkeley v4.6 Database Libraries [
ii  libssl0.9.8                   0.9.8g-15  SSL shared libraries
ii  lsb-base                      3.2-20     Linux Standard Base 3.2 init scrip
ii  perl                          5.10.0-19  Larry Wall's Practical Extraction

cfengine2 recommends no packages.

cfengine2 suggests no packages.

-- debconf information excluded


-- 
  "Unix was written to play Spacewar and cheat at Scrabble,
   but Linux was created merely to prove that it booted." - a.s.r. quote



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to