<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet href="http://bugs.horde.org/themes/feed-rss.xsl" type="text/xsl"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
 <channel>
  <title>Missing error checks on fgets and fputs in poppassd.php driver</title>
  <pubDate>Fri, 08 Aug 2008 14:33:01 -0400</pubDate>
  <link>http://bugs.horde.org/ticket/4505</link>
  <atom:link rel="self" type="application/rss+xml" title="Missing error checks on fgets and fputs in poppassd.php driver" href="http://bugs.horde.org/ticket/4505/rss" />
  <description>Missing error checks on fgets and fputs in poppassd.php driver</description>

  
  
  <item>
   <title>The poppassd driver is missing some error checks on the fget</title>
   <description>The poppassd driver is missing some error checks on the fgets and fputs commands.
I'm running poppassd from inetd (on Debian 3.1) and am restricting access to it with hosts.allow and hosts.deny

If you block access to poppassd completely (e.g., &quot;poppassd: ALL&quot; in /etc/hosts.deny), then Passwd will report succes, even though the change failed. This is because it can connect to the service (i.e., open a socket), but not use it. The 200 welcome code is also not sent to the client.
So, after sending the user command, the service returns nothing. The poppassd.php code does not check this however.

I have created a small patch that fixes this, which  I'll attach to this bugreport.

regards,
Leander

</description>
   <pubDate>Sun, 08 Oct 2006 12:58:01 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/4505#t24732</link>
  </item>
  <item>
   <title>Tweaked and committed, thanks.</title>
   <description>Tweaked and committed, thanks.</description>
   <pubDate>Mon, 09 Oct 2006 11:46:16 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/4505#t24777</link>
  </item>
  

 </channel>
</rss>
