john/john.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: src/params.h
     2 --- src/params.h.orig	2011-11-23 12:08:11.000000000 +0100
     3 +++ src/params.h	2011-11-24 09:04:33.000000000 +0100
     4 @@ -70,15 +70,15 @@
     5   * notes above.
     6   */
     7  #ifndef JOHN_SYSTEMWIDE
     8 -#define JOHN_SYSTEMWIDE			0
     9 +#define JOHN_SYSTEMWIDE			1
    10  #endif
    12  #if JOHN_SYSTEMWIDE
    13  #ifndef JOHN_SYSTEMWIDE_EXEC /* please refer to the notes above */
    14 -#define JOHN_SYSTEMWIDE_EXEC		"/usr/libexec/john"
    15 +#define JOHN_SYSTEMWIDE_EXEC		"@l_prefix@/libexec/john"
    16  #endif
    17  #ifndef JOHN_SYSTEMWIDE_HOME
    18 -#define JOHN_SYSTEMWIDE_HOME		"/usr/share/john"
    19 +#define JOHN_SYSTEMWIDE_HOME		"@l_prefix@/etc/john"
    20  #endif
    21  #define JOHN_PRIVATE_HOME		"~/.john"
    22  #endif
    23 Index: src/recovery.c
    24 --- src/recovery.c.orig	2011-03-20 16:02:41.000000000 +0100
    25 +++ src/recovery.c	2011-11-24 09:04:49.000000000 +0100
    26 @@ -3,7 +3,9 @@
    27   * Copyright (c) 1996-2003,2005,2006,2009,2010 by Solar Designer
    28   */
    30 +#ifndef __FreeBSD__
    31  #define _XOPEN_SOURCE 500 /* for fdopen(3), fileno(3), fsync(2), ftruncate(2) */
    32 +#endif
    33  #include <stdio.h>
    34  #include <unistd.h>
    35  #include <sys/types.h>

mercurial