[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
-n option doesn't prevent symlink from being removed if copy needed
From: |
Joe Ramey |
Subject: |
-n option doesn't prevent symlink from being removed if copy needed |
Date: |
Tue, 9 Jul 2002 19:05:09 -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
------------------------------------------------------------------------------
Suppose /etc/ar is currently a symlink:
$ ls -l /etc/ar*
lrwxrwxrwx 1 root other 7 Jul 9 18:54 /etc/ar -> ar.real
-rw-rw-r-- 1 root sys 59 Jun 28 16:30 /etc/ar.cfsaved
-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 with the `-v -n' options it removes the symlink:
------------------------------------------------------------------------------
Checking copy from localhost:/etc/ar.master to /etc/ar
Removing old symbolic link /etc/ar to make way for copy
Need this: /etc/ar wasn't at destination (copying)
------------------------------------------------------------------------------
$ ls -l /etc/ar*
-rw-rw-r-- 1 root sys 59 Jun 28 16:30 /etc/ar.cfsaved
-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 expect it to maybe say something like:
------------------------------------------------------------------------------
Need to remove old symbolic link /etc/ar to make way for copy
------------------------------------------------------------------------------
but not to actually remove the link since I specified -n.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- -n option doesn't prevent symlink from being removed if copy needed,
Joe Ramey <=