Commit Graph

236 Commits

Author SHA1 Message Date
Andrew Tridgell
964ca2eca5 simplified the logic of whether to skip a file or not. The -c
(always_checksum) option is probably now more useful.
1997-12-31 16:39:34 +00:00
Andrew Tridgell
684b4e3113 buffer overflow patches from mhpower@mit.edu (Matt Power) 1997-12-30 17:36:58 +00:00
Andrew Tridgell
f3644f1f2d - added a debug message
- rebuilt prototypes
1997-12-28 22:26:51 +00:00
Andrew Tridgell
82306bf6d6 *** empty log message *** 1997-12-17 11:07:17 +00:00
Andrew Tridgell
cbbe489208 handle things more grecefully when one machine supports hard links and
the other doesn't or one machine supports soft links and the other
doesn't.
1997-12-16 23:09:22 +00:00
Andrew Tridgell
fee64929a3 fixed a bug in the handling of the new --relative option. The file was
being opened twice but closed once. The process eventually died with
an out of file descriptors error.
1997-12-16 20:29:35 +00:00
Andrew Tridgell
d966ee254a fixed a nasty bug in the handling of the --delete option when there
are duplicate file names in the list of files to be transferred
(eg. the user specifies the same file twice).
1997-12-16 17:59:49 +00:00
Andrew Tridgell
7c59690640 process directory permissions and times ater hard links becuase the
hard link processing can modify the directory times
1997-12-15 22:23:30 +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
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
Paul Mackerras
774ef68f00 minor bugfixes 1997-04-11 06:18:02 +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
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
Andrew Tridgell
52296954fe add warning if corruption detected 1996-07-12 14:37:25 +00:00
Andrew Tridgell
a06d19e3fc *** empty log message *** 1996-07-05 04:49:32 +00:00
Andrew Tridgell
ebb0a6f618 *** empty log message *** 1996-07-04 10:16:56 +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
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
dc5ddbccac - hard links
- better sparse handling
- FERROR and FINFO
1996-06-30 03:57:22 +00:00
Andrew Tridgell
34ccb63e71 new exit/cleanup code 1996-06-28 13:55:41 +00:00
Andrew Tridgell
7bec6a5cd6 - handle no mmap for munmap
- handle sparse files
- add MAX_PROTOCOL_VERSION
1996-06-28 08:01:55 +00:00
Andrew Tridgell
43a481dc55 added csum-length option 1996-06-27 05:16:15 +00:00
Andrew Tridgell
4fe159a81d - improved filename packing
- fixed sunos EAGAIN bug
1996-06-27 04:22:19 +00:00
Paul Mackerras
79fbb6f59b Fix bug where the --delete option was deleting files locally which
should have been ignored when the -C option was used.
1996-06-27 01:45:24 +00:00
Andrew Tridgell
d9bea2ddd4 added support for non-mmap operation 1996-06-26 15:57:54 +00:00
Andrew Tridgell
182dca5c80 more byte efficient flist routines 1996-06-26 13:37:05 +00:00
Andrew Tridgell
720b47f261 went to full non-blocking writes for the send_files() process 1996-06-26 01:35:13 +00:00
Andrew Tridgell
94481d9113 added "created dir" message
added read buffer
1996-06-25 07:32:03 +00:00
Andrew Tridgell
981791bd45 fixed a bug where unmap could be called with a NULL buffer 1996-06-25 04:15:41 +00:00
Andrew Tridgell
ac1eb754b8 add SIGNAL_CAST
don't create files till needed when receiving
1996-06-22 05:31:55 +00:00
Andrew Tridgell
c627d61324 Initial revision 1996-06-22 05:04:20 +00:00