<?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>18000</bug_id>
          
          <creation_ts>2003-03-22 09:40 0000</creation_ts>
          <short_desc>esound wont always obey $ESPEAKER</short_desc>
          <delta_ts>2003-06-10 10:24:16 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>GNOME</component>
          <version>1.4_rc2</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.4</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>taviso@gentoo.org</reporter>
          <assigned_to>gnome@gentoo.org</assigned_to>
          <cc>taviso@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>taviso@gentoo.org</who>
            <bug_when>2003-03-22 09:40:38 0000</bug_when>
            <thetext>Theres a typo in esdlib.c, which means that under certain circumstances output
to esd in applications linked with libesound wont always go where you want.

Reproduce:

1) Setup two machines with sound, one running esd with -public -tcp 
2) On the machine NOT running esd, try playing something (eg with xmms) with
ESPEAKER set, or with &quot;use remote host&quot; checked. It should work.
3) Now on that same machine, start a local esd, and repeat - xmms will play to
the local daemon, whether you have ESPEAKER or &quot;play on remote host&quot; set.

A typo means that every host is thought to be localhost, so esd trys to connect
via local unix sockets before trying tcp, a good idea if it really is local -
but if you also have a local esd unix socket - it wont do what you want! 

Ive tried reporting this on bugzilla.gnome.org, but its not responding right now
- i&apos;ll do it when it gets back up. (I had already searched for the bug, its not
there)

the attatched one-liner patch fixes it for me.

Im not sure if there are security implications for this, eg stealing a users
sound by planting a UNIX socket where esd expects to find it...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>taviso@gentoo.org</who>
            <bug_when>2003-03-22 09:41:13 0000</bug_when>
            <thetext>Created an attachment (id=9695)
Not all hosts are localhost.

one-liner fix.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>taviso@gentoo.org</who>
            <bug_when>2003-03-22 09:46:46 0000</bug_when>
            <thetext>Created an attachment (id=9696)
arg, lets try that again.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>foser@gentoo.org</who>
            <bug_when>2003-04-25 09:46:49 0000</bug_when>
            <thetext>have you reported this to gnome.org bugzilla already ? got a bugno ?

The fix looks fairly obvious to me, see no reason to assume it&apos;s going to be a security risk.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>taviso@gentoo.org</who>
            <bug_when>2003-04-25 17:07:53 0000</bug_when>
            <thetext>#108954 

no reply from maintainers.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>foser@gentoo.org</who>
            <bug_when>2003-05-14 09:02:14 0000</bug_when>
            <thetext>i think esound is pretty unmaintained. I don&apos;t even know why they do the double check !host || *host  . But then i haven&apos;t looked at the source really.

anoyone anything to say before i add this ?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>taviso@gentoo.org</who>
            <bug_when>2003-06-10 02:15:40 0000</bug_when>
            <thetext>a gnome developer has reponded that this has been fixed in cvs. </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>taviso@gentoo.org</who>
            <bug_when>2003-06-10 10:24:16 0000</bug_when>
            <thetext>esound-0.2.29-r1.ebuild includes the patch, Thanks!</thetext>
          </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>9695</attachid>
            <date>2003-03-22 09:41 0000</date>
            <desc>Not all hosts are localhost.</desc>
            <filename>esound_remote-versus-local.diff</filename>
            <type>text/plain</type>
            <data encoding="base64">Q29tbW9uIHN1YmRpcmVjdG9yaWVzOiBlc291bmQtMC4yLjI5L2RvY3MgYW5kIGVzb3VuZC0wLjIu
Mjkub3JpZy9kb2NzCmRpZmYgLXUgZXNvdW5kLTAuMi4yOS9lc2RsaWIuYyBlc291bmQtMC4yLjI5
Lm9yaWcvZXNkbGliLmMKLS0tIGVzb3VuZC0wLjIuMjkvZXNkbGliLmMJMjAwMy0wMy0yMiAxNDoy
MzowOS4wMDAwMDAwMDAgKzAwMDAKKysrIGVzb3VuZC0wLjIuMjkub3JpZy9lc2RsaWIuYwkyMDAy
LTA3LTE1IDEwOjI4OjI2LjAwMDAwMDAwMCArMDEwMApAQCAtNTU4LDcgKzU1OCw3IEBACiBzdGF0
aWMgaW50IGlzX2hvc3RfbG9jYWwoY29uc3QgY2hhciogaG9zdCkgCiB7CiAgICAgY2hhciBobmJ1
ZlsyNTZdPSIiOwotICAgIGlmICghaG9zdCB8fCAoISpob3N0KSkgcmV0dXJuIDE7CisgICAgaWYg
KCFob3N0IHx8ICgqaG9zdCkpIHJldHVybiAxOwogCiAgICAgZ2V0aG9zdG5hbWUoaG5idWYsIHNp
emVvZihobmJ1ZikpOwogICAgIHJldHVybiAoIXN0cmNhc2VjbXAoaG9zdCxobmJ1ZikgfHwgIXN0
cmNhc2VjbXAoaG9zdCwgImxvY2FsaG9zdCIpKTsK
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>9696</attachid>
            <date>2003-03-22 09:46 0000</date>
            <desc>arg, lets try that again.</desc>
            <filename>esound_remote-versus-local.diff</filename>
            <type>text/plain</type>
            <data encoding="base64">ZGlmZiAtcnUgZXNvdW5kLTAuMi4yOS5vcmlnL2VzZGxpYi5jIGVzb3VuZC0wLjIuMjkvZXNkbGli
LmMKLS0tIGVzb3VuZC0wLjIuMjkub3JpZy9lc2RsaWIuYwkyMDAyLTA3LTE1IDEwOjI4OjI2LjAw
MDAwMDAwMCArMDEwMAorKysgZXNvdW5kLTAuMi4yOS9lc2RsaWIuYwkyMDAzLTAzLTIyIDE0OjIz
OjA5LjAwMDAwMDAwMCArMDAwMApAQCAtNTU4LDcgKzU1OCw3IEBACiBzdGF0aWMgaW50IGlzX2hv
c3RfbG9jYWwoY29uc3QgY2hhciogaG9zdCkgCiB7CiAgICAgY2hhciBobmJ1ZlsyNTZdPSIiOwot
ICAgIGlmICghaG9zdCB8fCAoKmhvc3QpKSByZXR1cm4gMTsKKyAgICBpZiAoIWhvc3QgfHwgKCEq
aG9zdCkpIHJldHVybiAxOwogCiAgICAgZ2V0aG9zdG5hbWUoaG5idWYsIHNpemVvZihobmJ1Zikp
OwogICAgIHJldHVybiAoIXN0cmNhc2VjbXAoaG9zdCxobmJ1ZikgfHwgIXN0cmNhc2VjbXAoaG9z
dCwgImxvY2FsaG9zdCIpKTsK
</data>        

          </attachment>
    </bug>

</bugzilla>