summaryrefslogtreecommitdiff
path: root/main.c
Commit message (Collapse)AuthorAgeFilesLines
* Complain if the destination arg is empty.Wayne Davison2022-10-021-2/+13
|
* Improve various things in the checksum codeWayne Davison2022-09-101-0/+11
| | | | | | | | | | - Size flist checksum data to hold the active size, not the max. - Add a negotiated hash method to the daemon auth code. - Use EVP for all openssl digests. This makes it easy to add more openssl digest methods and avoids deprecation warnings. - Support a way to re-enable deprecated digests via openssl conf file and allow a default file to be configured. - Supply a simple openssl-rsync.cnf file to enable legacy digests.
* Add `--trust-sender` option.Wayne Davison2022-08-091-2/+0
|
* Fix handling of daemon module names in file-list verification; convert some ↵Wayne Davison2022-08-091-2/+2
| | | | while loops to for loops.
* More improvements to file-list checkingWayne Davison2022-08-011-0/+1
| | | | | | - Avoid implied rules on generator and (with extra certainty) on server - Add -R implied-directory path elements as directory includes - Log about extra file-list checking using a new --debug=FILTER3 level
* Some extra file-list safety checks.Wayne Davison2022-07-311-1/+6
|
* Don't backslash-escape args for a local transfer.Wayne Davison2022-01-181-0/+5
|
* Fix `--old-args` interaction with a daemonWayne Davison2022-01-171-1/+1
| | | | | Ensure that a remote rsync daemon will not split a filename arg unless the user asked for `--old-args`.
* Preparing for release of 3.2.4pre2v3.2.4pre2Wayne Davison2022-01-151-1/+1
|
* Add an arg-protection idiom using backslash-escapesWayne Davison2022-01-091-5/+1
| | | | | | | | The new default is to protect args and options from unintended shell interpretation using backslash escapes. See the new `--old-args` option for a way to get the old-style splitting. This idiom was chosen over making `--protect-args` enabled by default because it is more backward compatible (e.g. it works with rrsync). Fixes #272.
* Preparing for release of 3.2.4pre1v3.2.4pre1Wayne Davison2022-01-021-1/+1
|
* Use mallinfo2, when available, and use %zd for size_t values on C99.Wayne Davison2021-12-261-27/+22
| | | | An exhanced version of pull request #265.
* Fix the ability to read the user's numeric locale.Wayne Davison2021-10-291-0/+1
|
* Need to also check stdout_format_has_i in some INFO-NAME checks.Wayne Davison2021-06-271-2/+3
|
* Unset DISPLAY in environment.Wayne Davison2021-05-011-2/+20
| | | | | | Without a DISPLAY var, ssh won't try to forward X11 when making an ssh connection. This patch also makes use of setenv() and unsetenv() if they are available.
* Handle a --mkpath failureWayne Davison2020-09-081-2/+5
| | | | | Fixes bug #96 where --mkpath makes rsync complain when a dest path exists but the path contains an alt-dest name for the single file.
* Don't allow a completely empty source arg.Wayne Davison2020-07-271-0/+7
|
* Complain about a missing/non-dir `--temp-dir`.Wayne Davison2020-07-261-0/+18
|
* Change daemon variable & simplify some option codeWayne Davison2020-07-251-12/+16
| | | | | | | | | - Rename daemon_over_rsh -> daemon_connection since it is also used to indicate if a non-rsh daemon connection is active. - Move the daemon-over-rsh exception out of server_options() to the one caller that needs that behavior. - Don't allow noop_io_until_death() to be short-circuited when talking to a daemon over a socket, because it can't send errors via stderr.
* Change the --mkpath message.Wayne Davison2020-07-241-1/+1
|
* Add --mkpath option. Fixes bugzilla bug 4621.Wayne Davison2020-07-231-8/+26
|
* Improve error output for local & remote-shell xfersWayne Davison2020-07-231-1/+1
|
* Warning fixes & impossible-failure improvementsWayne Davison2020-07-081-0/+2
| | | | | - Silence a couple warnings for less-common builds. - Use a better impossible-failure idiom than assert(0).
* One more TANDEM include.Wayne Davison2020-07-061-0/+3
|
* More TANDEM changesWayne Davison2020-07-061-2/+2
| | | | | | - Handle a non-0 root uid. - Handle alternate major/minor/MAKEDEV funcs. - Other misc compatibility tweaks.
* Some memory allocation improvementsWayne Davison2020-06-251-20/+5
| | | | | | | | | | - All the memory-allocation macros now auto-check for failure and exit with a failure message that incudes the caller's file and lineno info. This includes strdup(). - Added the `--max-alloc=SIZE` option to be able to override the memory allocator's sanity-check limit. It defaults to 1G (as before). Fixes bugzilla bug 12769.
* Make -4 & -6 also able to affect an ssh remote shell.Wayne Davison2020-06-131-12/+19
|
* Some indentation fixes.Wayne Davison2020-06-131-21/+16
|
* Change alt_dest_name() to alt_dest_opt().Wayne Davison2020-06-131-2/+2
|
* Change 3 alt-dest vars to just one + some defines.Wayne Davison2020-06-131-3/+2
|
* Make use of poptDupArgv().Wayne Davison2020-06-121-7/+4
|
* Fix a couple batchfile issues.Wayne Davison2020-06-101-2/+7
|
* A couple minor fixes.Wayne Davison2020-06-041-1/+0
|
* Improve how negotiated info affects batch files.Wayne Davison2020-05-251-17/+9
|
* Fix a bug in the writing of the batch.sh fileWayne Davison2020-05-221-1/+1
| | | | | | Fix the code that writes the options and the default destination path into the batch.sh file to be able to handle options being specified after source/dest args.
* Need to flush early errors before we exit.Wayne Davison2020-05-171-2/+0
|
* Set Copyright years and make them easier to updateWayne Davison2020-04-091-1/+1
| | | | | | | | I replaced git-set-file-times with an improved version that I wrote recently (in python3). A new script uses it to figure out the last-modified year for each *.[ch] file and updates its copyright. It also puts the latest year into the latest-year.h file for the output of --version.
* Fix the default skip-compress list.Wayne Davison2020-04-071-0/+4
| | | | | | | The default value of the skip-compress list actually comes from the daemon's default lp_dont_compress() value, but a while back the vars stopped getting default values in a non-daemon run. I added a call to reset_daemon_vars() so that the "Vars" values get set from "Defaults".
* Set RSYNC_PORT in the env for a daemon-over-rsh connection.Wayne Davison2020-04-051-1/+13
| | | | Fixes bug #14163.
* Add progress output via SIGINFO and SIGVTALRMWayne Davison2020-04-051-0/+13
| | | | | | | On BSD-ish systems you can type Ctrl+T to see the current file and the progress output (in --info=progress2 format). On hosts w/o SIGINFO, use something like "killall -VTALRM rsync" or a more targetted "kill -VTALRM PID ..." call (as needed).
* Make exit_cleanup() use _exit() if called from a signal handler.Wayne Davison2020-04-051-0/+2
| | | | Fixes bug #13982.
* Add a --copy-as=USER[:GROUP] optionWayne Davison2020-03-291-0/+78
| | | | | | This can be used by a root-run rsync to try to make reading or writing files safer in a situation where you can't run the whole rsync command as a non-root user.
* Tweak the copyright year.Wayne Davison2019-03-161-1/+1
|
* Allow some pre-/post-xfer exec shell restrictions.Wayne Davison2018-03-251-4/+23
| | | | Support both RSYNC_SHELL & RSYNC_NO_XFER_EXEC environment variables.
* Tweak copyright date.Wayne Davison2018-01-141-1/+1
|
* Add an extra argc validation in do_server_sender().Wayne Davison2017-10-291-5/+8
| | | | Fixes bug 13104.
* Add --checksum-choice option to choose the checksum algorithms.Wayne Davison2016-05-011-2/+0
|
* Output "UNKNOWN" if starttime or endtime is -1.Wayne Davison2016-04-171-1/+8
| | | | Fixes bug 11382.
* Only output about new backup dirs when requested.Wayne Davison2016-04-171-1/+2
| | | | Fixes bug 11812.
* Avoid creating even the top-level backup dir until needed.Wayne Davison2015-08-231-6/+19
| | | | Fixes bug 11423.