X-Git-Url: https://mattmccutchen.net/rsync/rsync-patches.git/blobdiff_plain/0ffcefadade4783d68237f89c96eddcc660ec3ed..ffa0c08b45e869703a574fb822c3f2753bbb6ad9:/slp.diff diff --git a/slp.diff b/slp.diff index e5e5914..027ff5c 100644 --- a/slp.diff +++ b/slp.diff @@ -1,7 +1,8 @@ This adds Service Location Protocol support. -After applying this patch, run these commands for a successful build: +To use this patch, run these commands for a successful build: + patch -p1 st_ino * 8), - (int) (sizeof (int64) * 8)); +@@ -233,8 +238,8 @@ static void print_rsync_version(enum log + (int)(sizeof (int64) * 8)); + rprintf(f, " %ssocketpairs, %shardlinks, %ssymlinks, %sIPv6, batchfiles, %sinplace,\n", + got_socketpair, hardlinks, links, ipv6, have_inplace); +- rprintf(f, " %sappend\n", +- have_inplace); ++ rprintf(f, " %sappend, %sSLP\n", ++ have_inplace, slp); + #ifdef MAINTAINER_MODE + rprintf(f, "Panic Action: \"%s\"\n", get_panic_action()); --- old/rsync.h +++ new/rsync.h -@@ -157,6 +157,9 @@ +@@ -173,6 +173,9 @@ #define SIGNIFICANT_ITEM_FLAGS (~(\ ITEM_BASIS_TYPE_FOLLOWS | ITEM_XNAME_FOLLOWS | ITEM_LOCAL_CHANGE)) @@ -224,7 +224,7 @@ and we can't honor that request. enddit() -@@ -550,6 +559,7 @@ use chroot = no +@@ -556,6 +565,7 @@ use chroot = no max connections = 4 syslog facility = local5 pid file = /var/run/rsyncd.pid @@ -234,7 +234,7 @@ and we can't honor that request. path = /var/ftp/pub --- old/socket.c +++ new/socket.c -@@ -465,6 +465,16 @@ void start_accept_loop(int port, int (*f +@@ -466,6 +466,16 @@ void start_accept_loop(int port, int (*f { fd_set deffds; int *sp, maxfd, i; @@ -251,7 +251,7 @@ and we can't honor that request. #ifdef HAVE_SIGACTION sigact.sa_flags = SA_NOCLDSTOP; -@@ -493,14 +503,25 @@ void start_accept_loop(int port, int (*f +@@ -494,14 +504,25 @@ void start_accept_loop(int port, int (*f maxfd = sp[i]; } @@ -277,7 +277,7 @@ and we can't honor that request. /* close log file before the potentially very long select so * file can be trimmed by another process instead of growing -@@ -512,8 +533,18 @@ void start_accept_loop(int port, int (*f +@@ -513,8 +534,18 @@ void start_accept_loop(int port, int (*f #else fds = deffds; #endif