<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>209115</bug_id>
          
          <creation_ts>2008-02-06 10:44 0000</creation_ts>
          <short_desc>net-proxy/tinyproxy init.d script is not POSIX compliant</short_desc>
          <delta_ts>2008-02-16 07:13:14 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>trivial</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>natanael.copa@gmail.com</reporter>
          <assigned_to>net-proxy@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>natanael.copa@gmail.com</who>
            <bug_when>2008-02-06 10:44:53 0000</bug_when>
            <thetext>trivial to make it play nice with busybox and other non-bash shells:

--- data.orig/etc/init.d/tinyproxy	2007-09-20 14:58:55 +0000
+++ data/etc/init.d/tinyproxy	2008-02-06 10:40:10 +0000
@@ -17,10 +17,10 @@
 stop() {
 	local pid=0
 	if [ -f /var/run/tinyproxy.pid ] ; then
-		pid=$(&lt;/var/run/tinyproxy.pid)
+		pid=$(cat /var/run/tinyproxy.pid)
 		rm /var/run/tinyproxy.pid
 	fi
 	ebegin &quot;Stopping tinyproxy&quot;
-	[ ${pid} -ne 0 ] &amp;&amp; kill ${pid}
+	[ &quot;${pid}&quot; -ne 0 ] &amp;&amp; kill &quot;${pid}&quot;
 	eend $?
 }</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mrness@gentoo.org</who>
            <bug_when>2008-02-16 07:13:14 0000</bug_when>
            <thetext>Fixed in cvs.

The init script was a joke, so I rewrote it from scratch and revbumped the package.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>