File: fix-io_mesg.patch

package info (click to toggle)
qpopper 4.0.5-4sarge1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 6,732 kB
  • ctags: 1,940
  • sloc: ansic: 21,790; makefile: 459; sh: 272; perl: 52
file content (22 lines) | stat: -rw-r--r-- 905 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- pop_send.c.orig     2002-09-11 12:48:38.000000000 +0200
+++ pop_send.c  2002-09-11 12:51:32.000000000 +0200
@@ -685,11 +685,12 @@
         if ( p->tls_started )
             pop_log ( p, POP_NOTICE, HERE, "Error flushing data to client" );
         else {
-            int e = ferror ( p->output );
-            pop_log ( p, POP_NOTICE, HERE,
-                      "I/O error flushing output to client %s at %s [%s]: "
-                      "%s (%d)",
-                      p->user, p->client, p->ipaddr, STRERROR(e), e );
+            if ( ferror ( p->output ) != 0) {
+                pop_log ( p, POP_NOTICE, HERE,
+                          "I/O error flushing output to client %s at %s [%s]: "
+                          "%s (%d)",
+                          p->user, p->client, p->ipaddr, STRERROR(errno), errno );
+           }
         }
         hangup = TRUE;
     } /* flush failed */