Commit Graph

6030 Commits

Author SHA1 Message Date
rsync-bugs
1634f4c459 casting cleanups (rsync now compiles cleanly under IRIX 6.4) 1997-12-15 21:41:33 +00:00
Andrew Tridgell
13a1f7929e some people are now using rsync as a public server, using various
patches or wrappers. One problem with this is that rsync was not
written with this in mind and wasn't very careful about possible stack
overflows etc which could lead to security breaches. This wasn't a
problem when run in the traditional way as any user that can run rsync
can login anyway and cause much more damage that way.
This patch attempts to close possible stack overflow problems. I've
checked for all strcpy(), strcat(), sprintf() and memcpy()
overflows. I would appreciate it if someone else with a devious mind
could also go through the rsync source code and see if there are any
other stack overflows possible. Let me know if you do.
1997-12-15 21:35:37 +00:00
Andrew Tridgell
e92338c82d several changes:
- by popular demand I have changed the behaviour of the --delete
option. It should now work as "expected" for even those people silly
enough not to read the man page. rsync will now only look for
candidate files/directories to delete in directories that are
explicitly transferred from the sender
- updated the README a bit
- try to fail a bit more gracefully when rsync runs out of disk
space. I don't think this issues is fully resolved yet
1997-12-15 21:04:04 +00:00
rsync-bugs
58da1efac1 minor cleanups (unused variables etc) 1997-12-15 19:11:24 +00:00
rsync-bugs
05a6556d06 only include sys/mod.h if S_ISLNK is not already defined. This allows
things to work on aix without causing broken sgi headers files to spew
lots of complaints
1997-12-15 18:36:21 +00:00
Andrew Tridgell
628ba800e4 bugfix from Kenji Miyake <kenjim@fix.co.jp>
this fixes a off by 1 error that could cause rsync to crash when used
with --delete
1997-12-15 18:01:15 +00:00
Andrew Tridgell
ce2ac5ac3f patch from Jim Meyering <meyering@eng.ascend.com>
- fixed typos in man page
- use @CFLAGS@ in Makefile.in, allowing override on command line
1997-12-15 17:57:28 +00:00
Andrew Tridgell
aa7ed20141 setup line buffering for debug messages 1997-12-15 17:46:58 +00:00
Andrew Tridgell
f9c5162020 be a bit more friendly on systems that behave badly (consume lots of
ram) when you realloc() up by a small amount at a time
1997-12-15 17:29:51 +00:00
Andrew Tridgell
fdd71e177d include sys/socket.h if possible (this should make rsync compile
cleanly on SCO)
1997-12-15 16:27:04 +00:00
Andrew Tridgell
6574b4f7d9 added a --relative (== -R) option. This is what Anthony Thyssen
suggested on the list recently. See the man page entry for details but
basically it changes the behaviour so that paths are not stripped,
thus allowing you to specify a single rsync command to sync lots of
directories/files while preserving the full path name of each file.
also fixed a bug in the handling of umasks when both the source and
destination machines are local. We need to reset the umask before the
exec to ensure that the child gets a correct umask.
1997-12-15 14:43:27 +00:00
Andrew Tridgell
0cfcfa29e2 added some more debug info to the "EOF in map_ptr" error message to
try to make it easier to track down what is going wrong.
Jarom, can you let me know what output this gives?
PS: the cvs commit messages for rsync are now sent to the rsync
mailing list. This will allow everyone to see what changes are being
made.
1997-12-15 13:38:06 +00:00
Andrew Tridgell
0aeee8c1c8 damn, I had implicitly assumed signed characters when writing the
rolling checksum code. The result is that rsync worked much more
slowly when going between two machines where one of the machines uses
signed and the other unsigned chars. The rolling checksum rarely
matched so effectively a copy was done in many cases. The data always
came through correctly so no file corruption occurred but it's pretty
pointless using rsync if it doesn't speed things up!
I've now made the sign of the chars explicit
1997-12-15 12:37:40 +00:00
Andrew Tridgell
05c629f778 I think I've (finally) fixed the problem with rsync periodically
freezing when used with ssh. The problem is really the ssh use of
blocking calls. rsync has had a fix for this for a while which relies
on using non-blocking calls itself and then reading any data from the
incoming fd when trying to write, thus ensuring that the incoming fd
doesn't get full.
The problem was the the incoming fd wasn't added to the select
statement, which meant that new data arriving on the fd only got read
when the select timed out, which happens every 10 seconds. Thus things
could slow to a crawl!
The incoming fd is now in the select call, and this seems to fix the
problem.
1997-12-15 12:33:15 +00:00
Andrew Tridgell
e950ec72c4 don't use WRAP as that maybe be defined in standard includes 1997-10-30 08:13:32 +00:00
Andrew Tridgell
5b62eeed08 fix version number 1997-10-30 08:07:38 +00:00
Andrew Tridgell
e9d4e304ea send "." filenames so the other end knows that a directory was sent 1997-10-30 08:07:28 +00:00
Andrew Tridgell
10ce5fbf35 fix spelling error 1997-10-30 08:06:46 +00:00
Andrew Tridgell
773f2bd47f minor updates 1997-07-10 01:12:36 +00:00
Paul Mackerras
774ef68f00 minor bugfixes 1997-04-11 06:18:02 +00:00
Paul Mackerras
b8d4524b4f Fixed bug in receiving 32kB compressible files 1996-11-06 04:49:53 +00:00
Andrew Tridgell
ff49baad6f *** empty log message *** 1996-10-02 06:33:58 +00:00
Andrew Tridgell
1482e93af0 added info on european mirror of rsync 1996-10-02 06:33:49 +00:00
Paul Mackerras
f80621049e Fix compression bug where incompressible files weren't transmitted correctly. 1996-10-02 04:20:22 +00:00
Andrew Tridgell
24d95c034f move check for remsh after config.h 1996-10-01 12:04:47 +00:00
Andrew Tridgell
a3418f2e97 change BAD to ZBAD to avoid conflict with some systems 1996-10-01 06:44:00 +00:00
Andrew Tridgell
8bf737494f - check for sys/select.h
- check for and use lchown if possible

- fix problem with root directory on source and destination
1996-10-01 06:40:36 +00:00
Andrew Tridgell
432b0fbdc9 - added info on the mailing list 1996-10-01 04:31:34 +00:00
Andrew Tridgell
d8ba14b176 update to version 1.6 1996-10-01 04:13:03 +00:00
Andrew Tridgell
7b8356d0bc - detect presence of remsh and use it instead of rsh
- handle directory ownership and permissions much better.

- fix bug where links caused the permissions of files to be
set incorrectly

- override the default umask in setting file permissions

- better handling -o and -D being passed to non-root users

- handle rsync to a destination of /

- fix the handling of mismatched file types at either end of the
link. For example, if the destination is a link and the source is not.
1996-10-01 04:12:30 +00:00
Paul Mackerras
280cbb8537 This should fix the bug where file transfer with compression failed with
the message 'inflate returned 0 (0 bytes)'.
1996-07-15 05:38:20 +00:00
Andrew Tridgell
52296954fe add warning if corruption detected 1996-07-12 14:37:25 +00:00
Andrew Tridgell
fe4d86e446 fix serious corruption bug 1996-07-12 14:36:03 +00:00
Andrew Tridgell
a06d19e3fc *** empty log message *** 1996-07-05 04:49:32 +00:00
Andrew Tridgell
94a3ac55f6 *** empty log message *** 1996-07-04 13:56:53 +00:00
Andrew Tridgell
1b01b295c9 added CHAR_OFFSET 1996-07-04 13:08:07 +00:00
Andrew Tridgell
ebb0a6f618 *** empty log message *** 1996-07-04 10:16:56 +00:00
Andrew Tridgell
f94e821c78 *** empty log message *** 1996-07-03 08:18:11 +00:00
Andrew Tridgell
038406fdfe *** empty log message *** 1996-07-03 08:12:32 +00:00
Andrew Tridgell
d89322c446 - fixed file time bug
- doc updates
1996-07-03 06:24:34 +00:00
Paul Mackerras
5be59dc5b2 fix buglet in handling multiple files 1996-07-03 05:28:55 +00:00
Andrew Tridgell
ef21f8dbff *** empty log message *** 1996-07-03 05:22:09 +00:00
Paul Mackerras
861c20b43d Added in-stream deflate compression for file reconstruction instructions. 1996-07-03 04:05:46 +00:00
Andrew Tridgell
1cdc8b50a2 check for null unmap 1996-07-03 02:21:47 +00:00
Andrew Tridgell
b98c7b81d2 save some more bytes by making the checksum smaller 1996-07-02 06:02:36 +00:00
Andrew Tridgell
73545f2ccb added seed to file sum 1996-07-02 03:22:08 +00:00
Andrew Tridgell
9e31c4824c added resend logic
added checksum on all files
1996-07-02 03:19:58 +00:00
Andrew Tridgell
c6e7fcb42b *** empty log message *** 1996-07-01 23:27:19 +00:00
Andrew Tridgell
70d794dce9 added hooks for compression in token.c 1996-07-01 05:55:05 +00:00
Andrew Tridgell
57e877a16d get byte order of checksum seed right 1996-06-30 05:02:45 +00:00