If I edit a text file containing a line which is over 4096 chars, the line will get truncated to 4096 chars exactly. This behavior is reproducible and was not present in older versions.
See the attached test, procedure:
- Create a file /tmp/longfile.txt containing a line over 4096 chars
- Run test_verylongline.cf on it
- Compare the original file and the edited one, the added line is present but the previous existing one is truncated to exactly 4096 chars
This breaks very badly some configuration files / machine inventories handled by CFEngine.