Commit Graph

  • cda2ae84b3 added "ignore errors" option in rsyncd.conf Andrew Tridgell 1999-10-31 02:19:24 +00:00
  • e7d6e0aa0c updated the configure test for fnmatch() to see if FNM_PATHNAME is working correctly. Andrew Tridgell 1999-10-27 13:17:16 +00:00
  • 8c9fd200f9 use do_open() instead of open() in several places to help the WinXX port and O_BINARY Andrew Tridgell 1999-10-25 22:04:09 +00:00
  • 79f118d859 Minor change suggesting people put in the right path in inetd.conf. Suggested by Roger Price <rprice@cs.uml.edu> David Dykstra 1999-10-19 17:50:39 +00:00
  • 7b10f91d8f added a note about using -v with --progress Andrew Tridgell 1999-09-06 02:04:20 +00:00
  • 3d19b4c83e separated out the make_backup code in preparation for some patches from Bob Edwards Andrew Tridgell 1999-08-30 08:19:47 +00:00
  • 79452d4693 Add a couple clarifying points to the sanitize_path() comments. David Dykstra 1999-07-09 17:07:59 +00:00
  • cb13abfed0 Fix significant security holes with "use chroot = no" in an rsync daemon: David Dykstra 1999-07-09 15:49:46 +00:00
  • 0503f06089 continue calling waitpid() while still reapingchildren (patch from Matti Aarnio) Andrew Tridgell 1999-06-27 04:12:12 +00:00
  • f855a7d01a fixed a bug that made us use only 16 bits of the file checksum when comparing checksums for the --checksum (-c) option. Andrew Tridgell 1999-06-26 01:06:38 +00:00
  • 4c3b4b2557 added RSYNC_PROXY support from Stephen Rothwell. This allows access to rsync servers via a web proxy (useful for getting through firewalls) Andrew Tridgell 1999-04-13 03:53:30 +00:00
  • 79b5aa09a0 preparing for release of 2.3.1 v2.3.1 rsync-bugs 1999-04-06 15:09:28 +00:00
  • 9bd6597666 set the exit code to RERR_FILEIO is io_error is set when we exit. This catches most sorts of io errors and ensures we report a error in our exit status. Andrew Tridgell 1999-04-06 14:52:32 +00:00
  • 6fe076b3d7 these aren't used any more Andrew Tridgell 1999-04-06 14:17:44 +00:00
  • cec8aa7724 handle the case of an empty file list in get_local_name Andrew Tridgell 1999-04-06 12:30:36 +00:00
  • 4c36a13ef2 don't abort the server side if the file list is empty (perhaps because all files have been excluded). Andrew Tridgell 1999-04-06 12:28:54 +00:00
  • 24986abd07 note in the man page that: Andrew Tridgell 1999-04-06 11:52:45 +00:00
  • 8dfac376b5 fix the man page to reflect the fact that exclude options in rsyncd.conf are not passed to the client and thus only affect the file lists on the server. Andrew Tridgell 1999-04-06 11:34:06 +00:00
  • e78733d975 fixed a nasty bug in the handling of "local_name" when setting the permissions on directories after a transfer. Andrew Tridgell 1999-04-06 10:56:18 +00:00
  • dffba35e01 quote RPM_OPT_FLAGS patch from racke@linuxia.de Andrew Tridgell 1999-04-06 10:27:34 +00:00
  • bd4ed7f719 Small bug fix for the --compare-dest option: when a file's contents hadn't changed but its permissions had, the file wasn't copied but its permissions were attempted to be set anyway. Made a change to skip setting the permissions in that case. David Dykstra 1999-04-02 18:24:27 +00:00
  • 752eaba41f Backed out the change to create missing parent directories when using --compare-dest. It was due to an incomplete analysis of the problem, sorry. I left a comment in its place indicating that normally the parent directories should already have been created. David Dykstra 1999-03-24 19:28:03 +00:00
  • ad517ce5b3 The "pid file" was getting created mode 666, not applying the umask because at that point in the program the umask is set to 0. Now creating the file with mode (666 & ~orig_umask). David Dykstra 1999-03-24 16:39:07 +00:00
  • 1f8413449d Fix bug with --compare-dest option where missing parent directories in the target destination were not getting created. There was a case in receiver.c to do that but it was only getting invoked when the -R option is specified, although I don't know why it was limited to that. David Dykstra 1999-03-23 22:20:10 +00:00
  • d0a7c8a487 preparing for release of 2.3.0 v2.3.0 rsync-bugs 1999-03-15 21:23:26 +00:00
  • ebb00c8e29 Changed the protocol version to 20 so that --stats will work without -v in both directions. David Dykstra 1999-03-15 21:17:58 +00:00
  • 6543dc0c4c Fix typo in comment in rsync.h, suggested by bje@cygnus.com David Dykstra 1999-03-15 17:04:22 +00:00
  • e459239d27 Make a special version number 2.3.0-beta for a short period because I'll be encouraging extra testing before the release. David Dykstra 1999-03-12 21:45:37 +00:00
  • 651443a7ff Allow + and - in the "include" and "exclude" directives in rsyncd.conf. Patch submitted by Damian A Ivereigh <damian@cisco.com> David Dykstra 1999-03-12 21:42:51 +00:00
  • 79fc6bdb45 Include a test for a working getopt_long because the one on some versions of cygwin doesn't work. Thanks to Martin Krumpolec <krumpo@pobox.sk> for the patch. At the same time, include cache checks in configure.in for a few items that were missing the checks. David Dykstra 1999-03-12 18:21:53 +00:00
  • 245fbb5129 When -R is used, send the permissions of the original top directories to the receiver even when not combined with -r. Without this, the directories were getting created mode 777 because the default umask on receivers is often 00. David Dykstra 1999-03-12 17:36:52 +00:00
  • c7c11a0d4c When a file cannot be deleted because of ETXTBSY (in particular, when an executable is busy on HPUX), rename it instead to .rsyncNNN. Most of the code was submitted by Ketil Kristiansen <ketil-k@osc.no> David Dykstra 1999-03-11 22:17:42 +00:00
  • c27f25922e Check for EINVAL from a rename error call in addition to ENOENT because David Campbell <david@pastornet.net.au> reported that that helps data be received onto a windows box running cygwin b19. David Dykstra 1999-03-09 21:55:16 +00:00
  • af21c12fbc Add distclean target to Makefile.in. David Dykstra 1999-03-09 21:47:18 +00:00
  • 32b1f1de0e Update config.sub to the latest from automake in addition to config.guess. David Dykstra 1999-03-09 21:46:15 +00:00
  • 529e60864f Update config.guess from a new official GNU version. I believe this is the latest, which comes with automake 1.4 (somebody else is in charge of installing the GNU stuff on my system so I'm not 100% sure it's the absolute latest, but it was updated just a couple weeks ago). David Dykstra 1999-03-05 16:37:44 +00:00
  • 972a3619c4 The change a couple days ago to create files initially without group and other access resulted in group and other access being left off when the '-p' option was not used. This fixes it by reintroducing the ACCESSPERMS mask and setting permissions to (file->mode & ACCESSPERMS) if preserve_perms is off. I decided to change the mask INITPERMMASK to INITACCESSPERMS at the same time. When preserve_perms is off, rsync is restored to the previous behavior of having the permissions of the original file with the umask and setuid/setgid bits shut off. David Dykstra 1999-03-04 21:48:52 +00:00
  • 8458724d25 Disable the optimization that treats include-only files as a special case whenever delete_mode is on. People reported problems when it kicked in while using --delete and while using --delete-excluded. David Dykstra 1999-03-02 20:56:17 +00:00
  • 9422bb3fdf Change getgroups to use GETGROUPS_T as the type of the group array returned, as calculated by the configure macro AC_TYPE_GETGROUPS. Without that, it doesn't work properly on systems like sunos 4 where gid_t is defined to be an unsigned short but getgroups is defined to return an array of integers. David Dykstra 1999-03-02 16:42:46 +00:00
  • 5afd8aedce Change the mask used when creating temporary files from 777 to 700, to prevent an obscure race-condition security hole where a file may for a short time have the wrong group. Could have used 707 instead but that's just too weird of a permission. The define name used to be ACCESSPERMS but that is defined as 777 on Linux, so changed the name to INITPERMMASK. David Dykstra 1999-03-01 21:22:54 +00:00
  • 86692050b5 When comparing -1 to a group id, cast -1 with gid_t because on some systems such as sunos4 gid_t is an unsigned short. This prevented the just-added non-mapped group test from working on sunos4. David Dykstra 1999-03-01 21:16:49 +00:00
  • 460f6b990a Prevent the -g option from preserving groups that a non-root receiver does not belong to, in these two ways: 1. If a group mapping doesn't exist for a group name, do not preserve it for a non-root receiver. This is especially evident with the sender is a daemon using chroot because then no mappings are available. 2. Before setting the group on a file make sure that it is in the list of groups returned by getgroups(). The same thing is done by chgrp on systems that support bsd-style chown/chgrp, and this enforces that it happens the same way on all systems. Overhead is very little, especially since most systems don't allow more then 16 groups per user. David Dykstra 1999-03-01 19:24:39 +00:00
  • 896bd482c0 Removed am_client variable. It was being set in one place, when a client of a socket (that is, a --daemon) server, but never looked at. The way to test whether or not on a client is (!am_server). David Dykstra 1999-02-25 17:58:31 +00:00
  • 53f821f1e6 Fix a bug with rsync -R --delete from ./ as reported in PR#1532 David Dykstra 1999-02-24 22:38:36 +00:00
  • b33b791e6b Add --delete-excluded option to delete files on the receiving side that are excluded. Implies --delete. David Dykstra 1999-02-22 19:55:57 +00:00
  • 17d31b380b Changed --stats implementation to work without -v in only these two situations: 1. the client is the receiver of files. Can't do it otherwise yet because without -v the bytes written from the sender's generator process will not be counted. 2. both the remote and local protocol versions are >=20. I did not change the protocol version yet because it is such a minor change that it isn't worth it, although I did test it with the protocol version set to 20. If neither of the situations hold, it prints a message saying to use -v. David Dykstra 1999-02-18 17:23:44 +00:00
  • a8b9d4edec Changed exclude/include matching so that normally wildcards will stop at slashes. The old behavior of crossing slashes can be achieved by using a double-asterisk ('**') anywhere in a pattern. Note that this can change some existing exclude patterns in a subtle way. Also note that if the remote side is an older release the processing on the two sides might not be exactly the same when there's no double-asterisk, which can affect which files are excluded from deletion, but they're close enough that people will probably not notice. I considered changing the protocol version and checking the remote_version number to ensure the same processing on both sides, but the exclude patterns are pre-processed before the remote version number is known and it's just not worth going through extraordinary efforts. Suggested by Cameron Simpson <cs@zip.com.au> David Dykstra 1999-02-18 16:27:36 +00:00
  • f83f054875 added --size-only option. Useful when starting to use rsync after a ftp based mirror system so that timestamps may not be right. Andrew Tridgell 1999-02-18 03:48:24 +00:00
  • 15800c7e89 Changed man page documentation of --force to say it is hardly ever needed any more except in very obscure cases. David Dykstra 1999-02-17 21:39:45 +00:00
  • b531360763 Added --copy-unsafe-links option which is like --copy-links except it is only for symlinks that point outside the source tree. Suggested by Charles Hines <chuck_hines@VNET.IBM.COM> in PR#1376. Also apply the option to any symbolic links in the source portion of a path when --relative is used, as suggested by Francis Montagnac <Francis.Montagnac@sophia.inria.fr> on the rsync mailing list in a message titled "New option: --copy-parent-links". David Dykstra 1999-02-17 19:34:40 +00:00
  • b567933566 Be consistent on use of '=' on options that take a parameter. David Dykstra 1999-02-15 17:48:06 +00:00
  • 52d7d78865 Change the implementation of memmove in lib/compat.c to call bcopy instead of memcpy because bcopy is guaranteed to work with overlapping memory and memcpy is not. Bug fix for PR#1584 in which log entries in the rsync daemon log on Sunos 4.1.4 were garbled. David Dykstra 1999-02-12 17:27:22 +00:00
  • 23c5aef18e A slight compensation I had just added for total bytes read when using -v was incorrect. It's hard to tell how many bytes are actually read because transferring the value changes it and depending on its value it may transfer 4 or 12 bytes so instead change the sender side to not include the length of the counters it sends at all (it had been including one but three are sent). David Dykstra 1999-02-10 22:16:32 +00:00
  • e19452a96c Allow --stats to work without -v. David Dykstra 1999-02-10 21:54:12 +00:00
  • 9ef5390714 Changed Usage in the rsync --help message to indicate how there can be multiple SRCs. Also moved the --suffix option to show up right after --backup and included the default backup suffix and block size along with their corresponding options rather than at the end. Copied the new help message to rsync.yo and README and used the Usage also in the SYNOPSIS section at the top of rsync.yo rather than the different one that used "path" instead of SRC and DEST. That last change was inspired by a suggestion from Michael Bleyer in PR #1523. David Dykstra 1999-02-10 19:33:05 +00:00
  • fd0abefa43 Changed error message that just said "open %s: %s" to "cannot create %s: %s" in receiver.c because it confuses people when they do something like rsync /etc/passwd /tmp/nonexistentdir/passwd and it printed out something like open /tmp/noniexistentdir/.passwd.a004d5 : No such file or directory Reported by kurt_granroth@pobox.com in PR #1253. David Dykstra 1999-02-10 18:44:25 +00:00
  • 19c14f987e Changed the optimized include mode (which kicks in when there are a series of non-wildcard includes followed by an exclude of *) so that it will silently ignore included files that don't exist rather than saying "No such file or directory". This is more like the behavior of the non-optimized include mode. David Dykstra 1999-02-10 18:03:59 +00:00
  • 122f19a615 Support '#' and ';' comments in exclude files. It would actually not probably cause any harm if they were treated as normal exclude or include patterns because they just wouldn't match anything, but it's better to explicitly ignore them. Suggested by David Holland <uholld1@lexis-nexis.com> David Dykstra 1999-02-09 22:31:52 +00:00
  • 3ca8e68f58 Added "strict modes" option. When set false (default is true), it allows the secrets file to be readable by other users. Added to support the Windows port under cygwin. Problem reported by Martin Krumpolec krumpo@pobox.sk David Dykstra 1999-02-09 19:27:15 +00:00
  • d41c7d025c Use MAXHOSTNAMELEN (256) for the array holding the host_name in socket.c instead of 200. Move the defines of True and False to rsync.h. Eliminate the defines of BOOL in loadparm.c and params.c because it is already defined in rsync.h. Changes suggested by Roman Gollent roman.gollent@wdr.com David Dykstra 1999-02-09 18:35:29 +00:00
  • b86f0cefa2 Add --quiet/-q option. Contributed by Rich Salz salzr@certco.com. David Dykstra 1999-02-09 17:25:35 +00:00
  • c226b7c2fd Move the initialization of push_dir, which calls getcwd, to early in main. The reason for that is that on SVR2-based UTS 2.1.2 (which along with many other old systems implements getcwd by forking "pwd") getcwd hangs when called when other child processes are running. David Dykstra 1999-02-03 15:38:06 +00:00
  • 5865fcdd63 When calling lchown, pass the current known uid and gid rather than -1 to not change it, since the old SVR2-based UTS 2.1.2 does not support leaving uid and gid alone when the value is -1. David Dykstra 1999-02-03 15:15:56 +00:00
  • e68f34816f Add alternate implementation of waitpid() for systems that have wait4 but not wait3, in particular Amdahl's SVR2-based UTS 2.1.2. The code comes from apache, but I contributed it to apache in the first place. David Dykstra 1999-02-03 15:11:40 +00:00
  • 716baed7ff Fix serious bug with "use chroot = no" option which caused "uid =" and "gid =" to be ignored. At the same time, change the "uid =" and "gid =" options to be ignored when not running the daemon as super-user, to make it more convenient for those people and to make it portable to systems such as cygwin which don't support the uid/gid notions. David Dykstra 1999-01-21 17:10:32 +00:00
  • b882b49747 Document the fact that the %t log format option includes the date, and that the "log file" option always prepends "%t [%p] ". David Dykstra 1999-01-20 21:32:46 +00:00
  • 1f0610ef82 Fix segmentation fault when using -vvv. Suggested by assar@sics.se. David Dykstra 1999-01-11 17:07:27 +00:00
  • 379e689dac fixed bug where strtok() could return NULL in getpassf(). Andrew Tridgell 1999-01-08 10:42:29 +00:00
  • 65575e9670 added --password-file patch from Alex Schlessinger <alex@inconnect.com> Andrew Tridgell 1999-01-08 10:32:56 +00:00
  • 5e71c4446e made the "max connections" and "lock file" local rather than global options so you can set them on a per-module basis (requested by kernel.org mirror maintiner) Andrew Tridgell 1999-01-08 07:51:25 +00:00
  • 94a7fce217 Ran yodl2man on rsync.yo, and updated modification date. David Dykstra 1999-01-07 16:27:38 +00:00
  • 3bc67f0c4f add warning about using RSYNC_PASSWORD on systems where env varibables are visible to all users. Andrew Tridgell 1999-01-07 07:19:03 +00:00
  • 117af10225 Change the receive log message from "send" to "recv". Fix from Rick Smith <rick@rbsmith.com>. David Dykstra 1999-01-05 20:08:45 +00:00
  • 536541d52b moved the block length mismatch code to another part of the loop. Andrew Tridgell 1999-01-05 06:43:59 +00:00
  • 496d9272c1 don't try to match checksums of two blocks which are of unequal size. This explains the high false_alarms rate that I saw for one of the sample data files used in my thesis. Andrew Tridgell 1999-01-05 06:31:58 +00:00
  • 34d3eed462 fixed a bug in the adjacent target optimisation Andrew Tridgell 1999-01-05 01:57:13 +00:00
  • 923fa97808 an optimization that tries to make rsync choose adjacent matches if multiple matching blocks are available. This make the run-length coding of the output more efficient. Andrew Tridgell 1999-01-05 01:15:32 +00:00
  • 4440b8aa3f no longer use mmap() in rsync because of the risk of a SIGBUS when another program (such as a mailer) truncates a file. Andrew Tridgell 1998-12-30 14:48:45 +00:00
  • 5a554d5b14 steve.ingram@icl-gis.com noticed several mistakes in rsync.1. Some of them had already been fixed but yodl2man hadn't been run, and a couple others were new. David Dykstra 1998-12-07 18:48:46 +00:00
  • 2cfeab21ce Fix minor man page typo, suggested by jbm@jbm.org. David Dykstra 1998-12-07 14:51:32 +00:00
  • 2b086e033c paranoia change - treat list_only like read_only and refuse all syscalls that might change the filesystem. This shouldn't be needed, but I like paranoid coding :) Andrew Tridgell 1998-12-05 01:56:45 +00:00
  • 241fc706a9 - slprintf() takes sizeof(buf) not sizeof(buf)-1 - fixed incorrect format string in rename error Andrew Tridgell 1998-12-05 01:55:37 +00:00
  • 7fadb4bc58 Support newer rpm's which define $RPM_OPT_FLAGS as a set of options separated by spaces. Suggested by pavel_roskin@geocities.com. David Dykstra 1998-12-01 16:13:25 +00:00
  • 6c7c2ef372 Minor documentation change suggested by pavel_roskin@geocities.com. David Dykstra 1998-12-01 16:11:40 +00:00
  • 86a2dd0a0a preparing for release of 2.2.1 v2.2.1 rsync-bugs 1998-11-25 16:24:56 +00:00
  • 63f0774f75 Back out change that treated "refuse options = compress" the same as "dont compress = *", by request of Tridge. Instead, mention the difference in the man page. Also, put in a shortcut in set_compression() to recognize "*" earlier instead of going through malloc/strtok/fnmatch/free cycle. David Dykstra 1998-11-25 15:37:50 +00:00
  • d47741cac6 When "refuse options = compress" is set in rsyncd.conf, silently send files at compression level 0 instead of printing an error and exitting. This is the same effect as "dont compress = *". David Dykstra 1998-11-24 22:03:16 +00:00
  • 5d5811f7d9 Always include "." when processing exclude lists. This avoids confusion when people do --exclude "*". Also, add an example to the man page that shows explicitly including parent directories when itemizing specific paths to include followed by --exclude "*". David Dykstra 1998-11-24 21:26:38 +00:00
  • dcc3a131d1 Update the README file to reflect current usage options. David Dykstra 1998-11-24 20:54:56 +00:00
  • 7212be9237 Don't list cleaned-out duplicate file names as "<NULL>" when doing list_only mode; skip them instead. David Dykstra 1998-11-24 20:51:45 +00:00
  • 44e2e57837 Change sanitize_path() function to not malloc a copy since it only shrinks paths and it is only used in places that have already just done a copy. David Dykstra 1998-11-24 20:18:11 +00:00
  • d1be231290 Make sure secrets file is not other-accessible, and owned by root if the daemon is running as root. Suggested by Mike Richardson <mike@quaking.demon.co.uk> David Dykstra 1998-11-24 19:52:35 +00:00
  • a926daecbf Always add the O_BINARY flag in do_open if it is defined, for Windows. Suggestion from Mart.Laak@hansa.ee David Dykstra 1998-11-24 19:10:21 +00:00
  • 53dd3135f1 Backup deleted files when using --delete and --backup. Based on a suggested patch from Kanai Makoto (kanai@hallab.co.jp). David Dykstra 1998-11-24 19:01:24 +00:00
  • cd64343a7a Add "include" and "include from" rsyncd.conf options. Contributed by Dennis Gilbert <dennis@oit.pdx.edu>. David Dykstra 1998-11-23 21:54:01 +00:00
  • 9e3c856a39 updates to reflect new samba.org domain the main web site is now http://rsync.samba.org/ Andrew Tridgell 1998-11-23 00:30:27 +00:00
  • 1e8ae5ede6 changed an example slightly Andrew Tridgell 1998-11-20 22:46:42 +00:00
  • 83fff1aa60 added "dont compress" option with the default setting of *.gz *.tgz *.zip *.z *.rpm *.deb Andrew Tridgell 1998-11-20 22:26:29 +00:00
  • 055af77666 improved the "refuse options" code a bit Andrew Tridgell 1998-11-19 06:45:21 +00:00
  • cd8185f2bd added "refuse options" option Andrew Tridgell 1998-11-19 06:35:49 +00:00