bug-httptunnel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

hts/htc bug


From: Mike Beede
Subject: hts/htc bug
Date: Fri, 17 May 2002 16:40:03 -0500

This is a one-liner -- in fact, a one-characterer -- that
breaks --stdin-stdout mode by trying to use stdin for
input _and_ output.  Luckily the comment (and the call
to log_annoying) were right, making it easy to find.

This was from version 3.3.

Regards,

        Mike Beede

--- common.c.orig       Fri May 17 16:33:37 2002
+++ common.c    Fri May 17 16:21:18 2002
@@ -314,7 +314,7 @@

       /* If fd == 0, then we are using --stdin-stdout so write to stdout,
        * not fd. */
-      m = write_all (fd ? fd : 0, buf, (size_t)n);
+      m = write_all (fd ? fd : 1, buf, (size_t)n);
       log_annoying ("write_all (%d, %p, %d) = %d", fd ? fd : 1, buf, n, m)
;
       return m;
     }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]