File ip_resend-fhs.diff of Package ip_resend
diff -urN ip_resend-0.3/Makefile ip_resend-0.3n/Makefile
--- ip_resend-0.3/Makefile Wed Feb 5 00:05:00 2003
+++ ip_resend-0.3n/Makefile Wed Feb 5 00:06:15 2003
@@ -4,7 +4,7 @@
INSTALL_MAN_DIR = $(INSTALL_PREFIX)/share/man/man8
#directory where ip_resend may create unix domain sockets
-SOCKET_DIR = /var/ip_resend
+SOCKET_DIR = /var/run/ip_resend
PROGRAMS = ip_resend ip_resend_wakeup
MAN_PAGES = ip_resend.8
diff -urN ip_resend-0.3/README ip_resend-0.3n/README
--- ip_resend-0.3/README Fri Nov 3 00:33:06 2000
+++ ip_resend-0.3n/README Wed Feb 5 00:07:20 2003
@@ -78,7 +78,7 @@
The co-operating ip_resend and ip_resend_wakeup processes must use
the same communication socket. If no `-c' option is present, the name
of the communication socket is derived from the outgoing interface name
-(`-o' option) by prepending the directory name `/var/ip_resend/'.
+(`-o' option) by prepending the directory name `/var/run/ip_resend/'.
What's that for? How Does it work?
@@ -380,7 +380,7 @@
-----------------
ip_resend and ip_resend_wakeup communicate by means of Unix domain
-sockets which are by default created in /var/ip_resend/. Ordinary
+sockets which are by default created in /var/run/ip_resend/. Ordinary
user must not be permitted to create files in that directory.
Firewalling
diff -urN ip_resend-0.3/ip_resend.8 ip_resend-0.3n/ip_resend.8
--- ip_resend-0.3/ip_resend.8 Fri Nov 3 00:24:30 2000
+++ ip_resend-0.3n/ip_resend.8 Wed Feb 5 00:07:40 2003
@@ -94,7 +94,7 @@
interface must therefor be started with the same
.B -c
argument. If the option is missing, the pathname is derived from
-the outgoing interface name and results in /var/ip_resend/OUTGOING_INTERFACE.
+the outgoing interface name and results in /var/run/ip_resend/OUTGOING_INTERFACE.
.TP
.B -w \fIWAKEUP_WAIT_MAX
An upper limit (in seconds) for the time that
@@ -249,7 +249,7 @@
.SH FILES
.TP
-/var/ip_resend/*
+/var/run/ip_resend/*
Default unix domain sockets for communication between
.B ip_resend
and
diff -urN ip_resend-0.3/ip_resend.c ip_resend-0.3n/ip_resend.c
--- ip_resend-0.3/ip_resend.c Wed Feb 5 00:05:00 2003
+++ ip_resend-0.3n/ip_resend.c Wed Feb 5 00:07:58 2003
@@ -22,7 +22,7 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef SOCK_DIR_PREFIX
-#define SOCK_DIR_PREFIX "/var/ip_resend"
+#define SOCK_DIR_PREFIX "/var/run/ip_resend"
#endif
#include <sys/types.h>
diff -urN ip_resend-0.3/ip_resend_wakeup.c ip_resend-0.3n/ip_resend_wakeup.c
--- ip_resend-0.3/ip_resend_wakeup.c Fri Nov 3 00:24:26 2000
+++ ip_resend-0.3n/ip_resend_wakeup.c Wed Feb 5 00:08:09 2003
@@ -19,7 +19,7 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef SOCK_DIR_PREFIX
-#define SOCK_DIR_PREFIX "/var/ip_resend"
+#define SOCK_DIR_PREFIX "/var/run/ip_resend"
#endif
#include <unistd.h>