john/john.patch

changeset 644
f341c75337f6
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/john/john.patch	Wed Aug 29 19:12:02 2012 +0200
     1.3 @@ -0,0 +1,35 @@
     1.4 +Index: src/params.h
     1.5 +--- src/params.h.orig	2011-11-23 12:08:11.000000000 +0100
     1.6 ++++ src/params.h	2011-11-24 09:04:33.000000000 +0100
     1.7 +@@ -70,15 +70,15 @@
     1.8 +  * notes above.
     1.9 +  */
    1.10 + #ifndef JOHN_SYSTEMWIDE
    1.11 +-#define JOHN_SYSTEMWIDE			0
    1.12 ++#define JOHN_SYSTEMWIDE			1
    1.13 + #endif
    1.14 + 
    1.15 + #if JOHN_SYSTEMWIDE
    1.16 + #ifndef JOHN_SYSTEMWIDE_EXEC /* please refer to the notes above */
    1.17 +-#define JOHN_SYSTEMWIDE_EXEC		"/usr/libexec/john"
    1.18 ++#define JOHN_SYSTEMWIDE_EXEC		"@l_prefix@/libexec/john"
    1.19 + #endif
    1.20 + #ifndef JOHN_SYSTEMWIDE_HOME
    1.21 +-#define JOHN_SYSTEMWIDE_HOME		"/usr/share/john"
    1.22 ++#define JOHN_SYSTEMWIDE_HOME		"@l_prefix@/etc/john"
    1.23 + #endif
    1.24 + #define JOHN_PRIVATE_HOME		"~/.john"
    1.25 + #endif
    1.26 +Index: src/recovery.c
    1.27 +--- src/recovery.c.orig	2011-03-20 16:02:41.000000000 +0100
    1.28 ++++ src/recovery.c	2011-11-24 09:04:49.000000000 +0100
    1.29 +@@ -3,7 +3,9 @@
    1.30 +  * Copyright (c) 1996-2003,2005,2006,2009,2010 by Solar Designer
    1.31 +  */
    1.32 + 
    1.33 ++#ifndef __FreeBSD__
    1.34 + #define _XOPEN_SOURCE 500 /* for fdopen(3), fileno(3), fsync(2), ftruncate(2) */
    1.35 ++#endif
    1.36 + #include <stdio.h>
    1.37 + #include <unistd.h>
    1.38 + #include <sys/types.h>

mercurial