Package: cfengine2
Version: 2.2.8-1
Severity: normal
Hi,
I wanted to edit a file in my current directory, and have thus created
this recipe:
------ cut
control:
any::
actionsequence = ( editfiles )
EditFileSize = ( 30000 )
editfiles:
any::
{ sshd_config
PrependIfNoSuchLine "# Testing cfagent"
}
------ cut
I also have a file "sshd_config" in the current directory. When I run
the recipe, I get the following (shortened for brevity):
debian$ cfagent -v -qKf ./cfagent-2.conf
...
cfengine:debian: Couldn't stat - no file to edit
...
and nothing happens. Then I thought I should quote the file name, or
escape it with a backslash, but that didn't help too much. At least,
escaping the underscore yields an enlightening error message:
cfengine:debian: Couldn't stat sshd\_config - no file to edit
Fortunately, specifying an absolute path worked, but in general, I'd
much appreciate if regular Unix style file names just work.
Kind regards,
--Toni++
-- System Information:
Debian Release: 5.0.2
APT prefers stable
APT policy: (990, 'stable'), (500, 'proposed-updates'), (450, 'testing'),
(250, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.26-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=en_US.utf8 (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+lenny1 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
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]