rsync.git
25 years agouse mmap() for files of any size. This should be much more buffer
Andrew Tridgell [Thu, 21 May 1998 05:52:37 +0000 (05:52 +0000)]
use mmap() for files of any size. This should be much more buffer
cache friendly.

25 years agosomeone didn't realise that you need rsync at both ends!
Andrew Tridgell [Thu, 21 May 1998 05:32:36 +0000 (05:32 +0000)]
someone didn't realise that you need rsync at both ends!

25 years agoadded DNS spoofing test to host access control
Andrew Tridgell [Wed, 20 May 1998 00:20:12 +0000 (00:20 +0000)]
added DNS spoofing test to host access control

25 years agopreparing for release of 2.0.10 v2.0.10
rsync-bugs [Mon, 18 May 1998 14:30:22 +0000 (14:30 +0000)]
preparing for release of 2.0.10

25 years agostrip any leading / off absolute paths when using relative path names
Andrew Tridgell [Mon, 18 May 1998 14:11:43 +0000 (14:11 +0000)]
strip any leading / off absolute paths when using relative path names

25 years agofixed a bug in the glob expansion code (pointed out by
Andrew Tridgell [Mon, 18 May 1998 14:00:24 +0000 (14:00 +0000)]
fixed a bug in the glob expansion code (pointed out by
hazard.bsn@blkseanet.net.eu.org)

25 years agopreparing for release of 2.0.9 v2.0.9
rsync-bugs [Mon, 18 May 1998 10:30:53 +0000 (10:30 +0000)]
preparing for release of 2.0.9

25 years agofixed a multiplexing bug
Andrew Tridgell [Mon, 18 May 1998 10:23:47 +0000 (10:23 +0000)]
fixed a multiplexing bug

25 years agohandle rsh clients that don't like half-open connections
Andrew Tridgell [Mon, 18 May 1998 09:34:33 +0000 (09:34 +0000)]
handle rsh clients that don't like half-open connections

25 years agothis is a large commit which adds io multiplexing, thus giving error
Andrew Tridgell [Mon, 18 May 1998 08:20:26 +0000 (08:20 +0000)]
this is a large commit which adds io multiplexing, thus giving error
messages from the server when using the socket code.

I've doen a fair bit of testing and I don't seem to have broken
anything, but it is a very complex change. More testing needed!

25 years agoif f_in == f_out then don't close one of them
Andrew Tridgell [Sun, 17 May 1998 15:18:25 +0000 (15:18 +0000)]
if f_in == f_out then don't close one of them

25 years agopreparing for release of 2.0.8
rsync-bugs [Sun, 17 May 1998 15:10:34 +0000 (15:10 +0000)]
preparing for release of 2.0.8

25 years agorpm is fussy about changelog formats
Andrew Tridgell [Sun, 17 May 1998 15:10:13 +0000 (15:10 +0000)]
rpm is fussy about changelog formats

25 years agopreparing for release of 2.0.8 v2.0.8
rsync-bugs [Sun, 17 May 1998 14:58:20 +0000 (14:58 +0000)]
preparing for release of 2.0.8

25 years agoupdated so I can auto-build rsync packages
Andrew Tridgell [Sun, 17 May 1998 14:32:57 +0000 (14:32 +0000)]
updated so I can auto-build rsync packages

25 years agoclose some unnecessary file descriptors in do_recv()
Andrew Tridgell [Sun, 17 May 1998 07:22:53 +0000 (07:22 +0000)]
close some unnecessary file descriptors in do_recv()

25 years agoput a limit (default 1MB) on the read buffer size. This stops it
Andrew Tridgell [Sun, 17 May 1998 05:56:32 +0000 (05:56 +0000)]
put a limit (default 1MB) on the read buffer size. This stops it
growing too much if the sender is much faster than the receiver

25 years agomoved usage mesage after am_daemon test (I'd broken daemon mode)
Andrew Tridgell [Sun, 17 May 1998 03:51:41 +0000 (03:51 +0000)]
moved usage mesage after am_daemon test (I'd broken daemon mode)

25 years agoclose the other half of the pipe in do_recv(). This fixes the problem
Andrew Tridgell [Sun, 17 May 1998 01:24:16 +0000 (01:24 +0000)]
close the other half of the pipe in do_recv(). This fixes the problem
where a rsync receive process could hang around after the connection
has gone away if a fatal error occurs (such as someone killing the
other end)

25 years agocheck for right number of arguments _after_ the option parsing.
Andrew Tridgell [Sat, 16 May 1998 15:18:07 +0000 (15:18 +0000)]
check for right number of arguments _after_ the option parsing.

this stops "rsync -v" causing a segv.

25 years agofor authenticated access record the authenticated username in the logs
Andrew Tridgell [Sat, 16 May 1998 07:45:26 +0000 (07:45 +0000)]
for authenticated access record the authenticated username in the logs

25 years agopreparing for release of 2.0.7 v2.0.7
rsync-bugs [Sat, 16 May 1998 05:38:33 +0000 (05:38 +0000)]
preparing for release of 2.0.7

25 years agoput only the ftp directory in the template file
rsync-bugs [Sat, 16 May 1998 05:35:56 +0000 (05:35 +0000)]
put only the ftp directory in the template file

25 years agoadded a template file for the rsync spec file to enable automatic spec
rsync-bugs [Sat, 16 May 1998 05:30:33 +0000 (05:30 +0000)]
added a template file for the rsync spec file to enable automatic spec
generation

25 years ago- print the stats at the right place when uploading in the rsync
Andrew Tridgell [Sat, 16 May 1998 05:24:40 +0000 (05:24 +0000)]
- print the stats at the right place when uploading in the rsync
  daemon
- update spec file

25 years agoSpec file for building Red Hat RPM packages.
John H Terpstra [Sat, 16 May 1998 04:23:41 +0000 (04:23 +0000)]
Spec file for building Red Hat RPM packages.

25 years ago- distinguish downloads and uploads in the syslog messages
Andrew Tridgell [Sat, 16 May 1998 03:03:57 +0000 (03:03 +0000)]
- distinguish downloads and uploads in the syslog messages
- add stats on uploads in syslog

25 years agopreparing for release of 2.0.6 v2.0.6
rsync-bugs [Sat, 16 May 1998 00:57:37 +0000 (00:57 +0000)]
preparing for release of 2.0.6

25 years agofixed handling of vsprintf on SunOS
Andrew Tridgell [Sat, 16 May 1998 00:46:16 +0000 (00:46 +0000)]
fixed handling of vsprintf on SunOS

25 years agopreparing for release of 2.0.5 v2.0.5
rsync-bugs [Fri, 15 May 1998 14:12:06 +0000 (14:12 +0000)]
preparing for release of 2.0.5

25 years agoremoved some debug code
Andrew Tridgell [Fri, 15 May 1998 14:01:04 +0000 (14:01 +0000)]
removed some debug code

25 years agogot rid of "EOF in map_ptr" problem. If a file shrinks mid transfer
Andrew Tridgell [Fri, 15 May 1998 14:00:12 +0000 (14:00 +0000)]
got rid of "EOF in map_ptr" problem. If a file shrinks mid transfer
then we supply a zero filled buffer at the end and rely on the
checksum to cause a retry. This is really the best we can do as there
is no correct semantics for copying a changing file!

25 years agoadded a "socket options" option to rsyncd.conf. This option will
Andrew Tridgell [Fri, 15 May 1998 13:25:19 +0000 (13:25 +0000)]
added a "socket options" option to rsyncd.conf. This option will
provide hours of fun for those people who like to tune their systems
to the utmost degree.

25 years agopreparing for release of 2.0.4 v2.0.4
rsync-bugs [Fri, 15 May 1998 10:58:03 +0000 (10:58 +0000)]
preparing for release of 2.0.4

25 years agoload just the globals section of the config file when the daemon
Andrew Tridgell [Fri, 15 May 1998 10:52:54 +0000 (10:52 +0000)]
load just the globals section of the config file when the daemon
starts so we know the syslog facility for the "starting" message

25 years ago- changed the log messages to show the requested path
Andrew Tridgell [Fri, 15 May 1998 10:34:07 +0000 (10:34 +0000)]
- changed the log messages to show the requested path
- some more paranoid buffer size checks
- separate open syslog call
- handle systems without LOG_NDELAY

25 years agouse strlcat() strlcpy() and slprintf() whenever possible to avoid any
Andrew Tridgell [Fri, 15 May 1998 09:26:01 +0000 (09:26 +0000)]
use strlcat() strlcpy() and slprintf() whenever possible to avoid any
chance of a buffer overflow

25 years agoallow the specification of multiple filenames (with or without
Andrew Tridgell [Fri, 15 May 1998 08:43:11 +0000 (08:43 +0000)]
allow the specification of multiple filenames (with or without
wildcards) to a rsync server. For example you can do:

rsync -avz samba::'ftp/pub/samba/README ftp/pub/samba/*.gz' .

25 years agopreparing for release of 2.0.3 v2.0.3
rsync-bugs [Fri, 15 May 1998 07:55:05 +0000 (07:55 +0000)]
preparing for release of 2.0.3

25 years agouse a separate "make man" target so people don't need yodl
Andrew Tridgell [Fri, 15 May 1998 07:53:41 +0000 (07:53 +0000)]
use a separate "make man" target so people don't need yodl

25 years agopreparing for release of 2.0.2 v2.0.2
rsync-bugs [Fri, 15 May 1998 07:37:00 +0000 (07:37 +0000)]
preparing for release of 2.0.2

25 years agoadded write buffering during the file list sending. This makes things
Andrew Tridgell [Fri, 15 May 1998 07:34:19 +0000 (07:34 +0000)]
added write buffering during the file list sending. This makes things
a bit more efficient (less system calls)

25 years agofixed a select bug which caused rsync to use far more cpu time than
Andrew Tridgell [Fri, 15 May 1998 07:11:29 +0000 (07:11 +0000)]
fixed a select bug which caused rsync to use far more cpu time than
necessary on the server

25 years agoupdated the README a bit
Andrew Tridgell [Fri, 15 May 1998 05:42:56 +0000 (05:42 +0000)]
updated the README a bit

25 years ago- added some notes about encryption and authentication to the man
Andrew Tridgell [Fri, 15 May 1998 05:37:34 +0000 (05:37 +0000)]
- added some notes about encryption and authentication to the man
pages

- documented the RSYNC_PASSWORD environment variable

25 years agopreparing for release of 2.0.1 v2.0.1
rsync-bugs [Fri, 15 May 1998 01:19:42 +0000 (01:19 +0000)]
preparing for release of 2.0.1

25 years agofixed typo in rsyncd exclude handling
Andrew Tridgell [Fri, 15 May 1998 01:14:48 +0000 (01:14 +0000)]
fixed typo in rsyncd exclude handling

25 years agoadded "exclude" and "exclude from" options to rsyncd.conf.
Andrew Tridgell [Fri, 15 May 1998 01:02:49 +0000 (01:02 +0000)]
added "exclude" and "exclude from" options to rsyncd.conf.

This is useful for mirroring a web site when you don't want users to
mirror everything.

25 years agofixed SIGCLD -> SIGCHLD
Andrew Tridgell [Fri, 15 May 1998 00:29:45 +0000 (00:29 +0000)]
fixed SIGCLD -> SIGCHLD

fixed formatting of man page (thanks to Karsten)

25 years agopreparing for release of 2.0.0 v2.0.0
rsync-bugs [Thu, 14 May 1998 07:22:45 +0000 (07:22 +0000)]
preparing for release of 2.0.0

25 years agofixed spelling mistakes
Andrew Tridgell [Thu, 14 May 1998 06:57:50 +0000 (06:57 +0000)]
fixed spelling mistakes

25 years agodocumentation!
Andrew Tridgell [Thu, 14 May 1998 06:51:28 +0000 (06:51 +0000)]
documentation!

I've written a rsyncd.conf man page (in yodl) and updated the rsync
man page.

25 years agosyslog some stats
Andrew Tridgell [Thu, 14 May 1998 04:49:30 +0000 (04:49 +0000)]
syslog some stats

25 years agonow support integers or strings for syslog facility
Andrew Tridgell [Thu, 14 May 1998 04:40:23 +0000 (04:40 +0000)]
now support integers or strings for syslog facility

25 years agochanged "syslog facility" to an enumerated type so the string name is
Andrew Tridgell [Thu, 14 May 1998 04:38:17 +0000 (04:38 +0000)]
changed "syslog facility" to an enumerated type so the string name is
used in rsyncd.conf

25 years agomake host access controls case insensitive
Andrew Tridgell [Thu, 14 May 1998 04:31:03 +0000 (04:31 +0000)]
make host access controls case insensitive

25 years agoremoved a debug line
Andrew Tridgell [Wed, 13 May 1998 15:56:03 +0000 (15:56 +0000)]
removed a debug line

25 years agoadded globbing support in the rsync daemon. This will allow you to
Andrew Tridgell [Wed, 13 May 1998 15:44:04 +0000 (15:44 +0000)]
added globbing support in the rsync daemon. This will allow you to
specify wildcards when grabbing files from a anon rsync daemon.

25 years agovsprintf returns char* on sunos4
Andrew Tridgell [Wed, 13 May 1998 13:48:25 +0000 (13:48 +0000)]
vsprintf returns char* on sunos4

25 years agoadded replacement memmove
Andrew Tridgell [Wed, 13 May 1998 13:27:36 +0000 (13:27 +0000)]
added replacement memmove

25 years agodefine INADDR_NONE if necessary
Andrew Tridgell [Wed, 13 May 1998 13:22:26 +0000 (13:22 +0000)]
define INADDR_NONE if necessary

25 years agoimproved the authentication and in particular the error reporting
Andrew Tridgell [Wed, 13 May 1998 12:21:10 +0000 (12:21 +0000)]
improved the authentication and in particular the error reporting

25 years agofirst working version of challenge response authentication. needs
Andrew Tridgell [Wed, 13 May 1998 11:49:05 +0000 (11:49 +0000)]
first working version of challenge response authentication. needs
testing.

25 years agoimproved max connections code. Now use fcntl instead of flock.
Andrew Tridgell [Wed, 13 May 1998 09:38:54 +0000 (09:38 +0000)]
improved max connections code. Now use fcntl instead of flock.

also started on authentication code (I'm doing a challenge response
system initially)

25 years agosave another couple of round trip latencies. This set of changes is
Andrew Tridgell [Wed, 13 May 1998 09:08:05 +0000 (09:08 +0000)]
save another couple of round trip latencies. This set of changes is
backwards compatible.

25 years agoneed sys/file.h for flock()
Andrew Tridgell [Wed, 13 May 1998 09:01:11 +0000 (09:01 +0000)]
need sys/file.h for flock()

25 years agosave one round trip (version swapping) for daemon.
Andrew Tridgell [Wed, 13 May 1998 08:58:07 +0000 (08:58 +0000)]
save one round trip (version swapping) for daemon.

This is an imcompatible change in the socket protocol. You get "is
your shell clean" if using an older rsync client

25 years agoadded two new options "max connections" and "lock file"
Andrew Tridgell [Wed, 13 May 1998 08:52:12 +0000 (08:52 +0000)]
added two new options "max connections" and "lock file"

25 years agoadded "syslog facility" option. It is an integer and defaults to the
Andrew Tridgell [Wed, 13 May 1998 08:12:51 +0000 (08:12 +0000)]
added "syslog facility" option. It is an integer and defaults to the
value of LOG_DAEMON.

25 years agoadded hosts allow and hosts deny support. I ended up writing my own as
Andrew Tridgell [Wed, 13 May 1998 08:03:47 +0000 (08:03 +0000)]
added hosts allow and hosts deny support. I ended up writing my own as
the tcpd code is not quite what I wanted.

25 years agocheck argc and show usage if no args
Andrew Tridgell [Wed, 13 May 1998 07:04:40 +0000 (07:04 +0000)]
check argc and show usage if no args

25 years agoload the config file on each connect rather than at startup
Andrew Tridgell [Wed, 13 May 1998 00:08:03 +0000 (00:08 +0000)]
load the config file on each connect rather than at startup

25 years agofixed a bug in the new . filename code
Andrew Tridgell [Mon, 11 May 1998 12:29:19 +0000 (12:29 +0000)]
fixed a bug in the new . filename code

25 years agochanged the name of the temporary filename to include a leading . so
Andrew Tridgell [Sun, 10 May 1998 13:45:03 +0000 (13:45 +0000)]
changed the name of the temporary filename to include a leading . so
that it appears hidden while being transferred. This should be useful
when using rsync for mirroring so users accessing via ftp don't get
confused by the temporary files.

25 years agothe statistics reporting was the wrong way around for client receipt
Andrew Tridgell [Sun, 10 May 1998 13:01:59 +0000 (13:01 +0000)]
the statistics reporting was the wrong way around for client receipt
mode! It reported the read/written backwards.

25 years agochanged a couple of places to use strlcpy()
Andrew Tridgell [Sun, 10 May 1998 12:37:26 +0000 (12:37 +0000)]
changed a couple of places to use strlcpy()

25 years agoonly call openlog once
Andrew Tridgell [Sun, 10 May 1998 08:31:50 +0000 (08:31 +0000)]
only call openlog once

fix a segv in loadparm.c

25 years agouse syslog instead of /var/adm/rsyncd.log
Andrew Tridgell [Sun, 10 May 1998 08:24:38 +0000 (08:24 +0000)]
use syslog instead of /var/adm/rsyncd.log

25 years agochange to allow names or numbers to be used for uid and gid.
Andrew Tridgell [Sun, 10 May 1998 08:05:56 +0000 (08:05 +0000)]
change to allow names or numbers to be used for uid and gid.

25 years agofixed typo in socket test
Andrew Tridgell [Sun, 10 May 1998 07:45:14 +0000 (07:45 +0000)]
fixed typo in socket test

25 years agolook for -lsocket by checking for connect()
Andrew Tridgell [Sun, 10 May 1998 07:40:20 +0000 (07:40 +0000)]
look for -lsocket by checking for connect()

25 years agosplit the options parsing code into options.c
Andrew Tridgell [Sun, 10 May 1998 07:25:40 +0000 (07:25 +0000)]
split the options parsing code into options.c

added the --port and --config options

use strlcpy() instead of strncpy()

some cleanups and formatting changes

25 years agobetter negotiation of protocol versions
Andrew Tridgell [Sun, 10 May 1998 03:08:22 +0000 (03:08 +0000)]
better negotiation of protocol versions

25 years agocleanup code a bit
Andrew Tridgell [Sun, 10 May 1998 01:46:06 +0000 (01:46 +0000)]
cleanup code a bit

25 years agoconfiguration parsing and loading code for rsyncd. This is based
Andrew Tridgell [Sat, 9 May 1998 14:00:55 +0000 (14:00 +0000)]
configuration parsing and loading code for rsyncd. This is based
on the Samba config code, so you'll find that the config files will
be eerily familiar if you have ever worked with Samba.

25 years agofirst vesrion of working socket based rsync. It still needs a lot of
Andrew Tridgell [Sat, 9 May 1998 13:58:54 +0000 (13:58 +0000)]
first vesrion of working socket based  It still needs a lot of
work, but at least it works :-)

25 years agojust a stub for now
Andrew Tridgell [Thu, 7 May 1998 14:53:02 +0000 (14:53 +0000)]
just a stub for now

25 years agoremoved some quoted printable stuff from this so it works again
Andrew Tridgell [Thu, 7 May 1998 14:52:38 +0000 (14:52 +0000)]
removed some quoted printable stuff from this so it works again

25 years agosome large systematic changes to make socket conversion easier. The
Andrew Tridgell [Thu, 7 May 1998 14:50:22 +0000 (14:50 +0000)]
some large systematic changes to make socket conversion easier. The
biggest one is the use of rprintf() instead of fprintf()

25 years agosome code cleanup in preparation for a cleaner client/server split
Andrew Tridgell [Thu, 7 May 1998 12:30:47 +0000 (12:30 +0000)]
some code cleanup in preparation for a cleaner client/server split

25 years agoimprove the autoconf warning for broken readdir
Andrew Tridgell [Thu, 7 May 1998 12:29:56 +0000 (12:29 +0000)]
improve the autoconf warning for broken readdir

25 years agoAdd pristine zlib-1.1.2 code, ready for hacking.
Paul Mackerras [Thu, 7 May 1998 06:19:41 +0000 (06:19 +0000)]
Add pristine zlib-1.1.2 code, ready for hacking.

25 years agonow using autoheader as well as autoconf
Andrew Tridgell [Thu, 7 May 1998 03:57:26 +0000 (03:57 +0000)]
now using autoheader as well as autoconf

25 years agohopefully better support for systems where sizeof(int)==8
Andrew Tridgell [Wed, 6 May 1998 14:13:03 +0000 (14:13 +0000)]
hopefully better support for systems where sizeof(int)==8

25 years agodon't need off64_t code on systems where off_t is already 64 bits
Andrew Tridgell [Wed, 6 May 1998 08:01:00 +0000 (08:01 +0000)]
don't need off64_t code on systems where off_t is already 64 bits

25 years agodamn solaris doesn't prototype it's functions correctly. grrr.
Andrew Tridgell [Wed, 6 May 1998 07:35:37 +0000 (07:35 +0000)]
damn solaris doesn't prototype it's functions correctly. grrr.

25 years agohandle mmap() failures
Andrew Tridgell [Wed, 6 May 1998 07:28:14 +0000 (07:28 +0000)]
handle mmap() failures

25 years agobetter test for solaris broken readdir
Andrew Tridgell [Wed, 6 May 1998 07:18:06 +0000 (07:18 +0000)]
better test for solaris broken readdir

25 years agohandle broken readdir() on Solaris 2.6 (it returns the name offset by
Andrew Tridgell [Wed, 6 May 1998 07:00:38 +0000 (07:00 +0000)]
handle broken readdir() on Solaris 2.6 (it returns the name offset by
2 characters!)

25 years agoadd support for lseek64() under solaris 2.6
Andrew Tridgell [Wed, 6 May 1998 06:34:18 +0000 (06:34 +0000)]
add support for lseek64() under solaris 2.6