First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 204729
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Network Proxy Developers <net-proxy@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Fabrizio Montesi <famontesi@gmail.com>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
polipoinit.diff Fix patch. patch Fabrizio Montesi 2008-01-07 09:48 0000 1.11 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 204729 depends on: Show dependency tree
Show dependency graph
Bug 204729 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)







View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2008-01-07 09:44 0000
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.

------- Comment #1 From Fabrizio Montesi 2008-01-07 09:48:13 0000 -------
Created an attachment (id=140360) [edit]
Fix patch.

------- Comment #2 From Alin Năstac 2008-01-07 20:17:46 0000 -------
Fixed in cvs without revision bump. Thanks!

First Last Prev Next    No search results available      Search page      Enter new bug