When trying to edit a file which has a symlink in the path that does not match the owner of the target file errors are produced which indicate we were unable to change into the directory and unable to open the file for writing. This is very misleading.
Failed to chdir into 'path'. (chdir: 'Permission denied')
Unable to open destination file 'pathtofile' for writing. (fopen: Permission denied)
The error message should indicate why we did not edit the file.
Perhaps something like ...
Unable to edit file 'pathtofile' because the owner of symlink 'pathtosymlink' does not match the owner of 'pathtofile' because a symlink owner should not be able to redirect the root power of CFEngine.