Commit ef08c4fb ef08c4fb0512ea88366a4ae45019db244755f2e6 by Sergey Poznyakoff

(pop3d_readline): Fixed misguiding diagnostics. Check for eof.

1 parent e8afa273
...@@ -251,7 +251,12 @@ pop3d_readline (char *buffer, size_t size) ...@@ -251,7 +251,12 @@ pop3d_readline (char *buffer, size_t size)
251 251
252 if (stream_strerror (ostream, &p)) 252 if (stream_strerror (ostream, &p))
253 p = strerror (errno); 253 p = strerror (errno);
254 syslog (LOG_ERR, _("write failed: %s"), p); 254 syslog (LOG_ERR, _("read failed: %s"), p);
255 pop3d_abquit (ERR_NO_OFILE);
256 }
257 else if (nbytes == 0)
258 {
259 syslog (LOG_ERR, _("unexpected eof on input"));
255 pop3d_abquit (ERR_NO_OFILE); 260 pop3d_abquit (ERR_NO_OFILE);
256 } 261 }
257 262
......