Closed telnoratti closed 9 years ago
Because of the way the lens handles blank lines at the beginning of a file, the insertion results in an invalid tree, one that can't be turned back into a file with that lens. The fix will be to modify the lens to handle this situation.
I've tested this on CentOS 6 and CentOS 7, but I pulled the most recent version of Shellvars.lns and the issue still persists. I also haven't tested with anything other than comments, so it could be more general.
Steps to reproduce
Create a file that is valid shell syntax with a newline at the beginning called test. https://linx.li/b59d7e0.txt is what I used.
I get the following error when printed
If I remove the newline at the beginning of the file it works fine. It appears that at least one Shellvars file (/etc/sysconfig/selinux) on CentOS contains a new line at the beginning.