[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
cfengine 2.0.3 - do I misunderstand typecheck or is it a bug?
From: |
Joe Ramey |
Subject: |
cfengine 2.0.3 - do I misunderstand typecheck or is it a bug? |
Date: |
Wed, 10 Jul 2002 17:54:56 -0500 (CDT) |
I am using cfengine version 2.0.3.
I have a simple cfengine.conf file:
------------------------------------------------------------------------------
control:
actionsequence = (
copy
)
copy:
/etc/ar.master dest=/etc/ar mode=0444 owner=root group=root type=checksum
typecheck=true
------------------------------------------------------------------------------
Suppose /etc/ar is currently a symlink:
$ ls -l /etc/ar*
lrwxrwxrwx 1 root other 7 Jul 10 17:50 /etc/ar -> ar.real
-r--r--r-- 1 root other 129 Jul 9 18:53 /etc/ar.master
-r--r--r-- 1 root other 129 Jul 9 17:57 /etc/ar.real
$
When I run cfagent on the cf file above I would expect it to do
nothing since /etc/ar.master and /etc/ar are not the same type, and
typecheck=true. However, it goes ahead and performs the copy:
$ cfagent --file cfengine-debug.conf
$ ls -l /etc/ar*
-r--r--r-- 1 root root 129 Jul 10 17:53 /etc/ar
-r--r--r-- 1 root other 129 Jul 9 18:53 /etc/ar.master
-r--r--r-- 1 root other 129 Jul 9 17:57 /etc/ar.real
$
I would have expected it to perform the copy (after first
removing the symlink) only if typecheck=false.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- cfengine 2.0.3 - do I misunderstand typecheck or is it a bug?,
Joe Ramey <=