diff options
Diffstat (limited to 'net/rsync/patches')
-rw-r--r-- | net/rsync/patches/patch-aa | 18 | ||||
-rw-r--r-- | net/rsync/patches/patch-ab | 8 | ||||
-rw-r--r-- | net/rsync/patches/patch-ac | 13 | ||||
-rw-r--r-- | net/rsync/patches/patch-ad | 53 | ||||
-rw-r--r-- | net/rsync/patches/patch-ae | 31 | ||||
-rw-r--r-- | net/rsync/patches/patch-af | 63 |
6 files changed, 41 insertions, 145 deletions
diff --git a/net/rsync/patches/patch-aa b/net/rsync/patches/patch-aa index 27ef6f5e7d3..d5cec4cc1f6 100644 --- a/net/rsync/patches/patch-aa +++ b/net/rsync/patches/patch-aa @@ -1,13 +1,13 @@ -$NetBSD: patch-aa,v 1.8 2002/03/12 16:02:57 tron Exp $ +$NetBSD: patch-aa,v 1.9 2004/01/20 05:16:42 grant Exp $ ---- match.c.orig Sun Feb 3 02:38:39 2002 -+++ match.c Tue Mar 12 16:55:19 2002 -@@ -247,7 +247,7 @@ +--- match.c.orig 2003-12-06 15:07:27.000000000 -0600 ++++ match.c +@@ -256,7 +256,7 @@ static void hash_search(int f,struct sum running match, the checksum update and the literal send. */ - if (offset > last_match && -- offset-last_match >= CHUNK_SIZE+s->n && -+ offset >= last_match+CHUNK_SIZE+s->n && - (end-offset > CHUNK_SIZE)) { - matched(f,s,buf,offset - s->n, -2); + if (offset > last_match +- && offset-last_match >= CHUNK_SIZE+s->blength ++ && offset >= last_match+CHUNK_SIZE+s->blength + && end-offset > CHUNK_SIZE) { + matched(f,s,buf,offset - s->blength, -2); } diff --git a/net/rsync/patches/patch-ab b/net/rsync/patches/patch-ab index 204fb92cbed..d8da46e2c7e 100644 --- a/net/rsync/patches/patch-ab +++ b/net/rsync/patches/patch-ab @@ -1,8 +1,8 @@ -$NetBSD: patch-ab,v 1.8 2003/03/06 20:44:14 salo Exp $ +$NetBSD: patch-ab,v 1.9 2004/01/20 05:16:42 grant Exp $ ---- Makefile.in.orig 2003-01-20 19:26:14.000000000 +0100 -+++ Makefile.in 2003-03-06 20:50:23.000000000 +0100 -@@ -60,12 +60,11 @@ +--- Makefile.in.orig 2003-07-30 01:12:25.000000000 -0500 ++++ Makefile.in +@@ -61,12 +61,11 @@ all: rsync$(EXEEXT) man: rsync.1 rsyncd.conf.5 install: all diff --git a/net/rsync/patches/patch-ac b/net/rsync/patches/patch-ac deleted file mode 100644 index 96d01486220..00000000000 --- a/net/rsync/patches/patch-ac +++ /dev/null @@ -1,13 +0,0 @@ -$NetBSD: patch-ac,v 1.7 2003/03/06 20:44:14 salo Exp $ - ---- rsync.h.orig 2003-01-26 21:11:16.000000000 +0100 -+++ rsync.h 2003-03-06 21:25:18.000000000 +0100 -@@ -26,7 +26,7 @@ - #define RSYNC_RSH_ENV "RSYNC_RSH" - - #define RSYNC_NAME "rsync" --#define RSYNCD_SYSCONF "/etc/rsyncd.conf" -+#define RSYNCD_SYSCONF "@PKG_SYSCONFDIR@/rsyncd.conf" - #define RSYNCD_USERCONF "rsyncd.conf" - - #define DEFAULT_LOCK_FILE "/var/run/rsyncd.lock" diff --git a/net/rsync/patches/patch-ad b/net/rsync/patches/patch-ad deleted file mode 100644 index 4db74e4af93..00000000000 --- a/net/rsync/patches/patch-ad +++ /dev/null @@ -1,53 +0,0 @@ -$NetBSD: patch-ad,v 1.4 2003/03/06 20:44:14 salo Exp $ - ---- rsyncd.conf.5.orig 2003-01-27 04:07:18.000000000 +0100 -+++ rsyncd.conf.5 2003-03-06 20:31:52.000000000 +0100 -@@ -65,10 +65,10 @@ - and a single line something like this to /etc/inetd\&.conf: - .PP - .RS --rsync stream tcp nowait root /usr/bin/rsync rsyncd --daemon -+rsync stream tcp nowait root @PREFIX@/bin/rsync rsyncd --daemon - .RE - .PP --Replace "/usr/bin/rsync" with the path to where you have rsync installed on -+Replace "@PREFIX@/bin/rsync" with the path to where you have rsync installed on - your system\&. You will then need to send inetd a HUP signal to tell it to - reread its config file\&. - .PP -@@ -259,8 +259,8 @@ - you may find that passwords longer than 8 characters don\'t work\&. - .IP - There is no default for the "secrets file" option, you must choose a name --(such as \f(CW/etc/rsyncd\&.secrets\fP)\&. The file must normally not be readable --by "other"; see "strict modes"\&. -+(such as \f(CW@PKG_SYSCONFDIR@/rsyncd\&.secrets\fP)\&. The file must normally -+not be readable by "other"; see "strict modes"\&. - .IP - .IP "\fBstrict modes\fP" - The "strict modes" option determines whether or not -@@ -504,13 +504,13 @@ - path = /data/cvs - comment = CVS repository (requires authentication) - auth users = tridge, susan -- secrets file = /etc/rsyncd\&.secrets -+ secrets file = @PKG_SYSCONFDIR@/rsyncd\&.secrets - - .fi - - - .PP --The /etc/rsyncd\&.secrets file would look something like this: -+The @PKG_SYSCONFDIR@/rsyncd\&.secrets file would look something like this: - .PP - tridge:mypass - .br -@@ -518,7 +518,7 @@ - .PP - .SH "FILES" - .PP --/etc/rsyncd\&.conf or rsyncd\&.conf -+@PKG_SYSCONFDIR@/rsyncd\&.conf - .PP - .SH "SEE ALSO" - .PP diff --git a/net/rsync/patches/patch-ae b/net/rsync/patches/patch-ae deleted file mode 100644 index 3e22df2c9f9..00000000000 --- a/net/rsync/patches/patch-ae +++ /dev/null @@ -1,31 +0,0 @@ -$NetBSD: patch-ae,v 1.5 2003/03/06 20:44:15 salo Exp $ - ---- rsync.1.orig 2003-01-28 04:11:57.000000000 +0100 -+++ rsync.1 2003-03-06 21:00:02.000000000 +0100 -@@ -236,7 +236,7 @@ - .PP - An rsync server is configured using a config file\&. Please see the - rsyncd\&.conf(5) man page for more information\&. By default the configuration --file is called /etc/rsyncd\&.conf, unless rsync is running over a remote -+file is called @PKG_SYSCONFDIR@/rsyncd\&.conf, unless rsync is running over a remote - shell program and is not running as root; in that case, the default name - is rsyncd\&.conf in the current directory on the remote computer - (typically $HOME)\&. -@@ -860,7 +860,7 @@ - .IP "\fB--config=FILE\fP" - This specifies an alternate config file than - the default\&. This is only relevant when --daemon is specified\&. --The default is /etc/rsyncd\&.conf unless the daemon is running over -+The default is @PKG_SYSCONFDIR@/rsyncd\&.conf unless the daemon is running over - a remote shell program and the remote user is not root; in that case - the default is rsyncd\&.conf in the current directory (typically $HOME)\&. - .IP -@@ -1258,7 +1258,7 @@ - .PP - .SH "FILES" - .PP --/etc/rsyncd\&.conf or rsyncd\&.conf -+@PKG_SYSCONFDIR@/rsyncd\&.conf or rsyncd\&.conf - .PP - .SH "SEE ALSO" - .PP diff --git a/net/rsync/patches/patch-af b/net/rsync/patches/patch-af index 892ff0ea477..ad781206e4f 100644 --- a/net/rsync/patches/patch-af +++ b/net/rsync/patches/patch-af @@ -1,8 +1,8 @@ -$NetBSD: patch-af,v 1.3 2003/04/11 03:56:06 salo Exp $ +$NetBSD: patch-af,v 1.4 2004/01/20 05:16:42 grant Exp $ ---- socket.c.orig 2003-01-27 04:35:09.000000000 +0100 -+++ socket.c 2003-04-11 05:07:48.000000000 +0200 -@@ -292,59 +292,30 @@ +--- socket.c.orig 2003-08-22 00:04:13.000000000 -0500 ++++ socket.c +@@ -292,59 +292,30 @@ int open_socket_out_wrapped (char *host, * @param bind_address Local address to bind, or NULL to allow it to * default. **/ @@ -34,9 +34,7 @@ $NetBSD: patch-af,v 1.3 2003/04/11 03:56:06 salo Exp $ - for (resp = all_ai; resp; resp = resp->ai_next) { - s = socket(resp->ai_family, resp->ai_socktype, - resp->ai_protocol); -+ s = socket(resp->ai_family, resp->ai_socktype, -+ resp->ai_protocol); - +- - if (s == -1) - /* See if there's another address that will work... */ - continue; @@ -50,7 +48,9 @@ $NetBSD: patch-af,v 1.3 2003/04/11 03:56:06 salo Exp $ - close(s); - continue; - } -- ++ s = socket(resp->ai_family, resp->ai_socktype, ++ resp->ai_protocol); + - freeaddrinfo(all_ai); - return s; + if (s == -1) @@ -76,8 +76,8 @@ $NetBSD: patch-af,v 1.3 2003/04/11 03:56:06 salo Exp $ } -@@ -373,24 +344,52 @@ - return(getsockopt(fd, SOL_SOCKET, SO_TYPE, (char *)&v, &l) == 0); +@@ -382,24 +353,52 @@ static RETSIGTYPE sigchld_handler(UNUSED + #endif } +#define MAXSOCK 20 @@ -137,7 +137,7 @@ $NetBSD: patch-af,v 1.3 2003/04/11 03:56:06 salo Exp $ /* now accept incoming connections - forking a new process for each incoming connection */ -@@ -407,49 +406,54 @@ +@@ -416,42 +415,47 @@ void start_accept_loop(int port, int (*f log_close(); FD_ZERO(&fds); @@ -149,33 +149,15 @@ $NetBSD: patch-af,v 1.3 2003/04/11 03:56:06 salo Exp $ + if (select(maxsock + 1, &fds, NULL, NULL, NULL) < 0) continue; - } - +- - if(!FD_ISSET(s, &fds)) continue; -+ for (i = 0; i < nsock; i++) { -+ if (!FD_ISSET(s[i], &fds)) -+ continue; - fd = accept(s,(struct sockaddr *)&addr,&addrlen); -+ fd = accept(s[i], (struct sockaddr *)&addr, &addrlen); - +- - if (fd == -1) continue; -+ if (fd == -1) -+ continue; - -- signal(SIGCHLD, SIG_IGN); -+ signal(SIGCHLD, SIG_IGN); - -- /* we shouldn't have any children left hanging around -- but I have had reports that on Digital Unix zombies -- are produced, so this ensures that they are reaped */ -+ /* we shouldn't have any children left hanging around -+ but I have had reports that on Digital Unix zombies -+ are produced, so this ensures that they are reaped */ - #ifdef WNOHANG -- while (waitpid(-1, NULL, WNOHANG) > 0); -+ while (waitpid(-1, NULL, WNOHANG) > 0); - #endif - +- +- signal(SIGCHLD, sigchld_handler); +- - if ((pid = fork()) == 0) { - int ret; - close(s); @@ -198,6 +180,17 @@ $NetBSD: patch-af,v 1.3 2003/04/11 03:56:06 salo Exp $ - } else { - /* Parent doesn't need this fd anymore. */ - close(fd); ++ for (i = 0; i < nsock; i++) { ++ if (!FD_ISSET(s[i], &fds)) ++ continue; ++ ++ fd = accept(s[i], (struct sockaddr *)&addr, &addrlen); ++ ++ if (fd == -1) ++ continue; ++ ++ signal(SIGCHLD, sigchld_handler); ++ + if ((pid = fork()) == 0) { + int ret; + for (i = 0; i < nsock; i++) @@ -209,7 +202,7 @@ $NetBSD: patch-af,v 1.3 2003/04/11 03:56:06 salo Exp $ + close_all(); + _exit(ret); + } else if (pid < 0) { -+ rprintf(FERROR, ++ rprintf(FERROR, + RSYNC_NAME + ": could not create child server process: %s\n", + strerror(errno)); |