summaryrefslogtreecommitdiff
path: root/msntp/msntp-1.6.patch
blob: a7f29b9eb019ecea784f5cd34cd48bcccb731e13 (plain)
    1 diff -Nru msntp-1.6.orig/Makefile msntp-1.6/Makefile
    2 --- msntp-1.6.orig/Makefile	2016-11-30 13:36:11.403554863 +0100
    3 +++ msntp-1.6/Makefile	2016-11-30 13:36:37.049294512 +0100
    4 @@ -11,7 +11,7 @@
    5  # CC = cc
    6  # CFLAGS = -O
    7  # LDFLAGS =
    8 -# LIBS = -lm
    9 +LIBS = -lm
   10  
   11  # Compiling this sort of ANSI C under SunOS 4.1 is a mug's game, because Sun's
   12  # Unix headers make GNU C vomit even in compatibility mode, but the following
   13 diff -Nru msntp-1.6.orig/header.h msntp-1.6/header.h
   14 --- msntp-1.6.orig/header.h	2016-11-30 13:36:11.403554863 +0100
   15 +++ msntp-1.6/header.h	2016-11-30 13:37:07.741518412 +0100
   16 @@ -19,10 +19,10 @@
   17  #define MAX_SOCKETS        10          /* Maximum number of addresses */
   18  
   19  #ifndef LOCKNAME
   20 -    #define LOCKNAME "/etc/msntp.pid"  /* Stores the pid */
   21 +    #define LOCKNAME "/var/run/msntp.pid"  /* Stores the pid */
   22  #endif
   23  #ifndef SAVENAME
   24 -    #define SAVENAME "/etc/msntp.state" /* Stores the recovery state */
   25 +    #define SAVENAME "/var/run/msntp.state" /* Stores the recovery state */
   26  #endif
   27  
   28  
   29 @@ -65,7 +65,7 @@
   30  
   31  /* Defined in socket.c */
   32  
   33 -extern void open_sockets (int which, char *hostnames, int timespan);
   34 +extern void open_socket (int which, char *hostnames, int timespan);
   35  
   36  extern void write_socket (int which, void *packet, int length);
   37  
   38 diff -Nru msntp-1.6.orig/msntp.1 msntp-1.6/msntp.1
   39 --- msntp-1.6.orig/msntp.1	2016-11-30 13:36:11.403554863 +0100
   40 +++ msntp-1.6/msntp.1	2016-11-30 13:36:37.052627724 +0100
   41 @@ -143,7 +143,7 @@
   42  one copy of
   43  .I msntp
   44  running at once.  The default is installation-dependent, but will usually be
   45 -.IR /etc/msntp.pid .
   46 +.IR /var/run/msntp.pid .
   47  .TP
   48  .BI \-e " minerr"
   49  sets the maximum ignorable variation between the clocks to
   50 @@ -214,7 +214,7 @@
   51  Note that the file will be created with the default ownerships and permissions,
   52  using standard C facilities.  The default is installation-dependent, but will
   53  usually be
   54 -.IR /etc/msntp.state .
   55 +.IR /var/run/msntp.state .
   56  .PP
   57  .B address(es)
   58  are the DNS names or IP numbers of hosts to use for the challenge and response
   59 diff -Nru msntp-1.6.orig/unix.c msntp-1.6/unix.c
   60 --- msntp-1.6.orig/unix.c	2016-11-30 13:36:11.403554863 +0100
   61 +++ msntp-1.6/unix.c	2016-11-30 13:37:36.770469102 +0100
   62 @@ -10,6 +10,7 @@
   63  #include "header.h"
   64  
   65  #include <sys/types.h>
   66 +#include <signal.h>
   67  #include <unistd.h>
   68  #include <syslog.h>
   69  

Generated by cgit