After symlinking /bin/dash to /bin/sh, the init script of polipo stopped working. The reason for this are two bash-isms, specifically the use of [[ ]] expression evaluation and the PIPESTATUS built-in variable. I'm attaching a fix for this. The changes are in the checkconfig() function. There is also a little optimization since the script does not use (list) sub-shell execution at all. Thanks to Diego "Flameeyes" Pettenò for his advices. Reproducible: Always Steps to Reproduce: 1. ln -sf /bin/dash /bin/sh 2. /etc/init.d/polipo start Actual Results: The scripts does not get executed due to error messages regarding the [[ ]] expression evaluation and the PIPESTATUS variable. Expected Results: Starting polipo.
Created attachment 140360 [details, diff] Fix patch.
Fixed in cvs without revision bump. Thanks!