Your message dated Thu, 13 Aug 2009 22:16:15 +0200
with message-id <[email protected]>
and subject line Re: Bug#541319: Acknowledgement (editfiles: problem with
relative file names)
has caused the Debian Bug report #541319,
regarding editfiles: problem with relative file names
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
541319: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=541319
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
Hi,
I overlooked the statement in the reference manual, stating that only
absolute path names are permitted. That makes the problem with relative
pathnames invalid.
Sorry for the noise.
Kind regards,
--Toni++
--- End Message ---