rsync-bugs [Thu, 18 Jun 1998 10:30:48 +0000 (10:30 +0000)]
preparing for release of 2.0.17
Andrew Tridgell [Thu, 18 Jun 1998 10:03:44 +0000 (10:03 +0000)]
if as non-root we failed to update the group of a file then don't
print the file name.
Andrew Tridgell [Thu, 18 Jun 1998 09:51:44 +0000 (09:51 +0000)]
for consistency use memcpy/memset everywhere instead of bcopy/bzero
Andrew Tridgell [Thu, 18 Jun 1998 09:37:21 +0000 (09:37 +0000)]
move include of compat.h after other includes.
Andrew Tridgell [Thu, 18 Jun 1998 09:36:24 +0000 (09:36 +0000)]
change the order of chmod and chown calls so that setuid bits don't
get removed by chown calls.
Andrew Tridgell [Thu, 18 Jun 1998 09:34:56 +0000 (09:34 +0000)]
set network file descriptors non-blocking before starting main rsync
algorithm.
Andrew Tridgell [Thu, 18 Jun 1998 09:33:46 +0000 (09:33 +0000)]
handle non-blocking file descriptors for both read and write. Add a
workaround for buggy systems that say there is space to write when
there isn't.
Andrew Tridgell [Thu, 18 Jun 1998 09:32:45 +0000 (09:32 +0000)]
put set_nonblocking() code back in.
Andrew Tridgell [Thu, 18 Jun 1998 09:31:42 +0000 (09:31 +0000)]
--help changes suggested by Francois
Andrew Tridgell [Thu, 18 Jun 1998 09:30:51 +0000 (09:30 +0000)]
manpage updates, mostly suggested by Francois
Andrew Tridgell [Wed, 3 Jun 1998 02:47:52 +0000 (02:47 +0000)]
the tag table should be of type int* not tag*.
This bug resulted in rsync being much less efficient that it could be
for files with more than 64k blocks. With the adaptive block size code
giving a maximum block size of 16k this means that files larger than
1GB were handled very inefficiently. The transfer was still accurate,
just slow.
Andrew Tridgell [Wed, 3 Jun 1998 02:35:51 +0000 (02:35 +0000)]
if the user passes a block size on the command line then don't adapt
the block size.
Andrew Tridgell [Tue, 2 Jun 1998 12:50:23 +0000 (12:50 +0000)]
added note to docs saying that --stats doesn't work unless -v is used
Andrew Tridgell [Tue, 2 Jun 1998 12:46:46 +0000 (12:46 +0000)]
added some fflush() calls to make sure the statistics lines are
printed when redirecting output to a file.
rsync-bugs [Mon, 1 Jun 1998 13:49:12 +0000 (13:49 +0000)]
preparing for release of 2.0.16
Andrew Tridgell [Mon, 1 Jun 1998 13:44:06 +0000 (13:44 +0000)]
added some notes to test.sh
Andrew Tridgell [Mon, 1 Jun 1998 13:39:54 +0000 (13:39 +0000)]
replace calls to strcmp() with a u_strcmp() function that uses only
unsigned comparisons. Transferring files between two machines that
treated strcmp() differently led to the files being given the wrong
name at the destination if the filenames had characters > 128 (such as
Kanji characters) and the source and destination machines treated
strcmp() differently (ie. one treated strings as signed and the other
as unsigned).
We now treat all string comparisons for file list sorting as unsigned.
Andrew Tridgell [Mon, 1 Jun 1998 10:38:24 +0000 (10:38 +0000)]
updated the usage info
Andrew Tridgell [Mon, 1 Jun 1998 03:42:14 +0000 (03:42 +0000)]
added --stats option for verbose stats on the file transfer
rsync-bugs [Sat, 30 May 1998 02:10:18 +0000 (02:10 +0000)]
preparing for release of 2.0.15
Andrew Tridgell [Sat, 30 May 1998 02:07:36 +0000 (02:07 +0000)]
replace BAD with zBAD so it compiles on AIX
Andrew Tridgell [Sat, 30 May 1998 02:03:29 +0000 (02:03 +0000)]
cosmetic fix.
reset offset to 0 at the start of each loop so the filenames get
printed correctly when sending directories followed by local names.
Andrew Tridgell [Sat, 30 May 1998 02:02:23 +0000 (02:02 +0000)]
make sure that io_flush() doesn't call writefd_unbuffered from within
a writefd_unbuffered call!
this should fix the "decompressor lost sync" bug
Andrew Tridgell [Fri, 29 May 1998 14:36:39 +0000 (14:36 +0000)]
replaced chdir and getcwd calls with push_dir/pop_dir functions. These
are faster and don't cause problems in a chrooted environment on any
systems.
rsync-bugs [Fri, 29 May 1998 02:29:33 +0000 (02:29 +0000)]
preparing for release of 2.0.14
Andrew Tridgell [Fri, 29 May 1998 02:28:33 +0000 (02:28 +0000)]
fixed a bug in the flist sending code that caused the flist sending to
get out of sync.
Andrew Tridgell [Thu, 28 May 1998 06:40:25 +0000 (06:40 +0000)]
use Realloc instead of realloc
Andrew Tridgell [Thu, 28 May 1998 06:29:57 +0000 (06:29 +0000)]
fix realloc call for systems that don't handle realloc(NULL, ...)
Andrew Tridgell [Thu, 28 May 1998 05:05:26 +0000 (05:05 +0000)]
don't do recursive deletion if the recurse option is not selected.
Andrew Tridgell [Thu, 28 May 1998 01:58:33 +0000 (01:58 +0000)]
cosmetic fix. don't display a EOF error when displaying just the motd
from a rsync server
rsync-bugs [Wed, 27 May 1998 13:54:41 +0000 (13:54 +0000)]
preparing for release of 2.0.13
Andrew Tridgell [Wed, 27 May 1998 13:47:34 +0000 (13:47 +0000)]
reduce IO_BUFFER_SIZE by 4 bytes so when then length word gets added
it is a power of 2.
Andrew Tridgell [Wed, 27 May 1998 13:39:40 +0000 (13:39 +0000)]
added new include/exclude options to man page
Andrew Tridgell [Wed, 27 May 1998 13:05:05 +0000 (13:05 +0000)]
- always flush the IO write buffer when reading
- handle start of line in exclude properly
Andrew Tridgell [Wed, 27 May 1998 12:37:22 +0000 (12:37 +0000)]
heaps of cleanup in the io code.
we no longer use non-blocking IO, instead it uses select a lot more,
being careful to always allow for reading whenever a valid read fd is
available and chcking timeouts.
also split the file io calls into fileio.c
Andrew Tridgell [Wed, 27 May 1998 11:02:33 +0000 (11:02 +0000)]
added support for --include, --include-from and the +/- syntax
Andrew Tridgell [Wed, 27 May 1998 06:31:37 +0000 (06:31 +0000)]
new test code from Phil
Andrew Tridgell [Wed, 27 May 1998 06:30:50 +0000 (06:30 +0000)]
fixed a race condition in the --delete handling code. The bug led to
spurious error messages about not be able to delete some files.
this fix also makes --delete processing more efficient
rsync-bugs [Tue, 26 May 1998 14:45:05 +0000 (14:45 +0000)]
preparing for release of 2.0.12
Andrew Tridgell [Tue, 26 May 1998 14:39:18 +0000 (14:39 +0000)]
fixed a bug in the handling of very long filenames (longer than 255
chars) where two neighboring filenames share more than 255 characters
at the start of their names.
Andrew Tridgell [Tue, 26 May 1998 14:18:59 +0000 (14:18 +0000)]
check for munmap as well as mmap. NextStep only has mmap in standard
libs
Andrew Tridgell [Tue, 26 May 1998 14:17:27 +0000 (14:17 +0000)]
formatting changes
Andrew Tridgell [Tue, 26 May 1998 14:16:20 +0000 (14:16 +0000)]
error formatting changes
Andrew Tridgell [Sat, 23 May 1998 05:57:08 +0000 (05:57 +0000)]
- don't allow chown for the group of a file if running as a daemon and
uid!=0
- reset am_root after startup as a daemon
Andrew Tridgell [Sat, 23 May 1998 03:13:46 +0000 (03:13 +0000)]
don't treat intermediate link directories as links in the relative
path code
Andrew Tridgell [Fri, 22 May 1998 14:22:41 +0000 (14:22 +0000)]
need strchr check in configure.in
Andrew Tridgell [Fri, 22 May 1998 14:03:30 +0000 (14:03 +0000)]
use a simpler mmap() test in autoconf as we don't need all the
features of mmap that the standard test uses, and it reports Ultrix as
having no working mmap() when in fact any mmap will do what we want
for rsync.
Andrew Tridgell [Fri, 22 May 1998 13:51:26 +0000 (13:51 +0000)]
need a ifdef around some mmap code
rsync-bugs [Fri, 22 May 1998 13:46:30 +0000 (13:46 +0000)]
preparing for release of 2.0.11
Andrew Tridgell [Fri, 22 May 1998 13:27:55 +0000 (13:27 +0000)]
add a cast to initialisation of mask
Andrew Tridgell [Fri, 22 May 1998 13:02:22 +0000 (13:02 +0000)]
change WRAP to ZWRAP so it doesn't conflict with IRIX includes
Andrew Tridgell [Fri, 22 May 1998 12:20:07 +0000 (12:20 +0000)]
added a README.rsync to explain what we have changed in zlib and to
tell people that any bugs are our responsibility.
Andrew Tridgell [Fri, 22 May 1998 12:13:07 +0000 (12:13 +0000)]
no longer needed
Andrew Tridgell [Fri, 22 May 1998 12:08:49 +0000 (12:08 +0000)]
- fix redefinition of MAX
- fix shadow of variable "overflow"
Andrew Tridgell [Fri, 22 May 1998 12:07:23 +0000 (12:07 +0000)]
fix shadowed variable
Andrew Tridgell [Fri, 22 May 1998 12:06:25 +0000 (12:06 +0000)]
removing an unused variable
Andrew Tridgell [Fri, 22 May 1998 12:05:53 +0000 (12:05 +0000)]
don't need two AC_OUTPUT lines in configure.in
Paul Mackerras [Fri, 22 May 1998 06:58:52 +0000 (06:58 +0000)]
Update to use the new zlib-1.1.2 code.
The compressed token code now handles the null (-2)
token from the match logic.
Andrew Tridgell [Fri, 22 May 1998 01:53:02 +0000 (01:53 +0000)]
this fixes two problems:
1) handle 64 bit file offsets in the token code. I wonder how large
bit files worked up till now?
2) send a null token when we have passed over a large lump of data
without finding a token match. This reduces the number of IOs
considerably as it removes the need for seeks/reads on the checksum
calculation and literal send code. This is not enabled yet for the
compressed case as the deflate token code can't handle it yet.
Andrew Tridgell [Thu, 21 May 1998 05:57:15 +0000 (05:57 +0000)]
formatting changes. committed separately so they don't mask the coming
token changes.
Andrew Tridgell [Thu, 21 May 1998 05:55:33 +0000 (05:55 +0000)]
now that we slide the mmap window we can use a smaller MAX_MAP_SIZE
and thus consume less virtual memory on the sending side.
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.
Andrew Tridgell [Thu, 21 May 1998 05:32:36 +0000 (05:32 +0000)]
someone didn't realise that you need rsync at both ends!
Andrew Tridgell [Wed, 20 May 1998 00:20:12 +0000 (00:20 +0000)]
added DNS spoofing test to host access control
rsync-bugs [Mon, 18 May 1998 14:30:22 +0000 (14:30 +0000)]
preparing for release of 2.0.10
Andrew Tridgell [Mon, 18 May 1998 14:11:43 +0000 (14:11 +0000)]
strip any leading / off absolute paths when using relative path names
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)
rsync-bugs [Mon, 18 May 1998 10:30:53 +0000 (10:30 +0000)]
preparing for release of 2.0.9
Andrew Tridgell [Mon, 18 May 1998 10:23:47 +0000 (10:23 +0000)]
fixed a multiplexing bug
Andrew Tridgell [Mon, 18 May 1998 09:34:33 +0000 (09:34 +0000)]
handle rsh clients that don't like half-open connections
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!
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
rsync-bugs [Sun, 17 May 1998 15:10:34 +0000 (15:10 +0000)]
preparing for release of 2.0.8
Andrew Tridgell [Sun, 17 May 1998 15:10:13 +0000 (15:10 +0000)]
rpm is fussy about changelog formats
rsync-bugs [Sun, 17 May 1998 14:58:20 +0000 (14:58 +0000)]
preparing for release of 2.0.8
Andrew Tridgell [Sun, 17 May 1998 14:32:57 +0000 (14:32 +0000)]
updated so I can auto-build rsync packages
Andrew Tridgell [Sun, 17 May 1998 07:22:53 +0000 (07:22 +0000)]
close some unnecessary file descriptors in do_recv()
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
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)
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)
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.
Andrew Tridgell [Sat, 16 May 1998 07:45:26 +0000 (07:45 +0000)]
for authenticated access record the authenticated username in the logs
rsync-bugs [Sat, 16 May 1998 05:38:33 +0000 (05:38 +0000)]
preparing for release of 2.0.7
rsync-bugs [Sat, 16 May 1998 05:35:56 +0000 (05:35 +0000)]
put only the ftp directory in the template file
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
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
John H Terpstra [Sat, 16 May 1998 04:23:41 +0000 (04:23 +0000)]
Spec file for building Red Hat RPM packages.
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
rsync-bugs [Sat, 16 May 1998 00:57:37 +0000 (00:57 +0000)]
preparing for release of 2.0.6
Andrew Tridgell [Sat, 16 May 1998 00:46:16 +0000 (00:46 +0000)]
fixed handling of vsprintf on SunOS
rsync-bugs [Fri, 15 May 1998 14:12:06 +0000 (14:12 +0000)]
preparing for release of 2.0.5
Andrew Tridgell [Fri, 15 May 1998 14:01:04 +0000 (14:01 +0000)]
removed some debug code
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!
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.
rsync-bugs [Fri, 15 May 1998 10:58:03 +0000 (10:58 +0000)]
preparing for release of 2.0.4
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
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
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
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' .
rsync-bugs [Fri, 15 May 1998 07:55:05 +0000 (07:55 +0000)]
preparing for release of 2.0.3