Subject: Collected Debian patches for lbcd
Author: Russ Allbery <rra@debian.org>

Since I am also upstream for this package, there will normally not be any
patches to apply to the upstream source.  However, occasionally I'll pull
up specific upstream commits prior to making an upstream release.  When
this happens, this patch will collect all of those modifications.

I use Git to maintain both the upstream source and the Debian packages,
and generating individual patches rather than using git cherry-pick takes
extra work for no gain.  Since I'm also upstream, there's no need to
separate the patches for later upstream submission.  Hence, I take this
approach with a unified patch when it's necessary.

For full commit history and separated commits, see the upstream Git
repsitory.
--- lbcd-3.4.1.orig/configure.ac
+++ lbcd-3.4.1/configure.ac
@@ -18,7 +18,9 @@ AM_MAINTAINER_MODE
 
 AC_PROG_CC
 AC_USE_SYSTEM_EXTENSIONS
+AC_SYS_LARGEFILE
 AM_PROG_CC_C_O
+AM_PROG_AR
 AC_PROG_INSTALL
 AC_PROG_RANLIB
 
--- lbcd-3.4.1.orig/tests/util/network-t.c
+++ lbcd-3.4.1/tests/util/network-t.c
@@ -5,7 +5,7 @@
  * which can be found at <http://www.eyrie.org/~eagle/software/rra-c-util/>.
  *
  * Written by Russ Allbery <rra@stanford.edu>
- * Copyright 2005 Russ Allbery <rra@stanford.edu>
+ * Copyright 2005, 2013 Russ Allbery <rra@stanford.edu>
  * Copyright 2009, 2010, 2011, 2012
  *     The Board of Trustees of the Leland Stanford Junior University
  *
@@ -573,8 +573,8 @@ test_network_write(void)
     socklen_t slen;
     char *buffer;
 
-    buffer = bmalloc(512 * 1024);
-    memset(buffer, 'a', 512 * 1024);
+    buffer = bmalloc(4096 * 1024);
+    memset(buffer, 'a', 4096 * 1024);
     fd = network_bind_ipv4("127.0.0.1", 11119);
     if (fd == INVALID_SOCKET)
         sysbail("cannot create or bind socket");
@@ -609,7 +609,7 @@ test_network_write(void)
         ok(network_write(c, buffer, 32 * 1024, 0), "network_write");
         ok(network_write(c, buffer, 32 * 1024, 1),
            "network_write with timeout");
-        ok(!network_write(c, buffer, 512 * 1024, 1),
+        ok(!network_write(c, buffer, 4096 * 1024, 1),
            "network_write aborted with timeout");
         is_int(ETIMEDOUT, socket_errno, "...with correct error");
         socket_close(c);
