[PATCH 2/2] ver_linux: Drop redundant calls to system() to test if file is readable

2018-05-12 Thread Alexander Kapshuk
Running 'test -r' on an awk variable name whose value is an empty string results in test being run with no arguments, and causes system() to return 0, which indicates success when used to test values returned by function calls. This results in code within the if blocks being run when it should not

[PATCH 2/2] ver_linux: Drop redundant calls to system() to test if file is readable

2018-05-12 Thread Alexander Kapshuk
Running 'test -r' on an awk variable name whose value is an empty string results in test being run with no arguments, and causes system() to return 0, which indicates success when used to test values returned by function calls. This results in code within the if blocks being run when it should not