cpio/cpio.patch

Thu, 04 Oct 2012 20:30:05 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 04 Oct 2012 20:30:05 +0200
changeset 715
c10fb90893b9
permissions
-rw-r--r--

Correct out of date build configuration, porting to Solaris 11 network
link infrastructure and new libpcap logic. This additionally allows for
device drivers in subdirectories of /dev. Correct packaged nmap
personalities and signatures to work out of the box. Finally, hack
arpd logic to properly close sockets and quit on TERM by repeating
signaling in the run command script. Sadly, all this fails to correct
the run time behaviour of honeyd which fails to bind to the IP layer.

     1 Index: lib/rtapelib.c
     2 --- lib/rtapelib.c.orig	2009-03-19 12:47:19 +0100
     3 +++ lib/rtapelib.c	2009-06-20 17:36:22 +0200
     4 @@ -628,7 +628,7 @@
     5  {
     6    char command_buffer[COMMAND_BUFFER_SIZE];
     7    char operand_buffer[UINTMAX_STRSIZE_BOUND];
     8 -  uintmax_t u = offset < 0 ? - (uintmax_t) offset : (uintmax_t) offset;
     9 +  unsigned long u = offset < 0 ? - (unsigned long) offset : (unsigned long) offset;
    10    char *p = operand_buffer + sizeof operand_buffer;
    12    *--p = 0;
    13 @@ -670,9 +670,9 @@
    14        {
    15  	char command_buffer[COMMAND_BUFFER_SIZE];
    16  	char operand_buffer[UINTMAX_STRSIZE_BOUND];
    17 -	uintmax_t u = (((struct mtop *) argument)->mt_count < 0
    18 -		       ? - (uintmax_t) ((struct mtop *) argument)->mt_count
    19 -		       : (uintmax_t) ((struct mtop *) argument)->mt_count);
    20 +	unsigned long u = (((struct mtop *) argument)->mt_count < 0
    21 +		       ? - (unsigned long) ((struct mtop *) argument)->mt_count
    22 +		       : (unsigned long) ((struct mtop *) argument)->mt_count);
    23  	char *p = operand_buffer + sizeof operand_buffer;
    25          *--p = 0;
    26 Index: lib/system.h
    27 --- lib/system.h.orig	2009-06-20 10:29:22 +0200
    28 +++ lib/system.h	2009-06-20 17:36:22 +0200
    29 @@ -425,7 +425,7 @@
    31  #include <intprops.h>
    33 -#define UINTMAX_STRSIZE_BOUND INT_BUFSIZE_BOUND (uintmax_t)
    34 +#define UINTMAX_STRSIZE_BOUND INT_BUFSIZE_BOUND (unsigned long)
    36  /* Prototypes for external functions.  */
    38 Index: src/userspec.c
    39 --- src/userspec.c.orig	2009-02-14 19:15:50 +0100
    40 +++ src/userspec.c	2009-06-20 17:41:54 +0200
    41 @@ -20,7 +20,6 @@
    42  /* Written by David MacKenzie <djm@gnu.ai.mit.edu>.  */
    44  #include <system.h>
    45 -#include <alloca.h>
    46  #include <stdio.h>
    47  #include <ctype.h>
    48  #include <sys/types.h>

mercurial