aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
Commit message (Collapse)AuthorAgeFilesLines
* - Improved get_local_name() using ideas from Matt McCutchen'sWayne Davison2006-01-151-31/+82
| | | | | | version: lots more comments, and a "local name" copy now does a chdir to the parent dir of the destination file. - Moved the setlocale() call prior to the parse_arguments() call.
* Got rid of calls to (the soon to vanish) safe_fname() function.Wayne Davison2006-01-131-6/+6
|
* Return RERR_SIGNAL1 from sigusr1_handler().Wayne Davison2005-12-161-1/+1
|
* Parse single- and double-quotes in the --rsh/-e option (and RSYNC_RSH).Wayne Davison2005-12-141-6/+32
|
* Output the stats and the end-of-run verbose output using the newWayne Davison2005-11-121-17/+17
| | | | | human_num() and human_dnum() functions, which both honor the new --human-readable option.
* - Indent the "oom:" label away from column 0.Wayne Davison2005-11-101-2/+1
| | | | - Got rid of a superfluous newline.
* Got rid of some early-checksum code that accidentally got committed.Wayne Davison2005-11-021-19/+0
|
* - Changed the "status" variables into "exit_code" variables.Wayne Davison2005-10-261-23/+24
| | | | | | - Added an error message to wait_process_with_flush() that reports the errno we get when waitpid() fails. - Increased the value of MAXCHILDPROCS.
* Changed wait_process() into a simpler, yet more versatile function,Wayne Davison2005-10-241-22/+28
| | | | | and used it in the new wait_process_with_flush() function (the old function's new name). Made wait_process() public.
* Some systems don't define WCOREDUMP(), so #ifdef that code.Wayne Davison2005-09-261-1/+23
|
* Fixed wait_process() to handle cases where waitpid() fails orWayne Davison2005-09-261-7/+17
| | | | the child process did not exit cleanly.
* Got rid of some old command-line parsing code that was onlyWayne Davison2005-09-161-16/+1
| | | | useful when talking to a 1.x client.
* Got rid of some unused externs.Wayne Davison2005-07-221-5/+0
|
* Avoid newest test when no destination was specified.Wayne Davison2005-07-151-1/+1
|
* Output a syntax error if both the source and destination are remote.Wayne Davison2005-07-151-0/+7
|
* Make the --stats output come out after any delete-after messages.Wayne Davison2005-05-121-7/+4
|
* Use new MAX_SERVER_ARGS define instead of hard-wired "100".Wayne Davison2005-05-031-1/+1
|
* When rsync encountered an empty file list, it behaved differentlyWayne Davison2005-04-231-9/+10
| | | | | | | | when pulling files than when pushing files: pulling it output a (mostly) unhelpful error message and then exited with a 0 status, even when the remote side exited with an error code. I changed this to output the normal end summary (when verbose) and to exit with the status intact (just like when pushing files).
* - Only do read-/write-batch processing if we're not the server (neededWayne Davison2005-04-091-5/+7
| | | | | | now that write_batch is no longer forced to 0 for the server). - If write_batch is < 0, force "dry_run = 1" (but only after we've finished any appropriate write-batch file creation).
* - Conditionally include <locale.h>.Wayne Davison2005-04-011-0/+7
| | | | - Conditionally call setlocale(LC_CTYPE, "").
* Moved a call to output_summary() up a line.Wayne Davison2005-03-301-1/+1
|
* Split report() into handle_stats() and output_report() so that (1)Wayne Davison2005-03-291-12/+24
| | | | | | the report happens after all --delete-after activity has ceased when pulling, and (2) a batch-file created when pushing gets the stats values written out prior to any end-of-run keep-alive packets.
* Mention the index number for an "invalid packet at end of run".Wayne Davison2005-03-151-2/+2
|
* Got rid of the name-pipe from the generator to the receiver.Wayne Davison2005-03-091-17/+4
|
* A few minor tweaks to improve two error messages and make better useWayne Davison2005-03-051-8/+10
| | | | of the "the_file_list" global.
* - Set the new global "the_file_list".Wayne Davison2005-03-031-2/+6
| | | | | - Got rid of test of read_batch in an am_sender section since there is never a sender process for --read-batch.
* Made the argv/argc parsing a little nicer.Wayne Davison2005-03-011-15/+10
|
* - Changes needed to handle new filesfrom_host variable.Wayne Davison2005-03-011-88/+22
| | | | - Changes needed to use check_for_hostspec() in place of find_colon().
* Tweaked a comment.Wayne Davison2005-02-281-3/+3
|
* Complain if the run-terminating keep-alive packets aren't whatWayne Davison2005-02-271-13/+22
| | | | we expected.
* - Seems to me that sigusr2_handler() should call close_all() forWayne Davison2005-02-271-3/+6
| | | | | the sake of MS Windows. - Improved some comments.
* Set kluge_around_eof to a -1 for the receiver's needs.Wayne Davison2005-02-261-2/+2
|
* Set kludge_around_eof when the receiver is trying to read aWayne Davison2005-02-261-0/+2
| | | | potential keep-alive message that may never come.
* Handle keep-alive messages at the end of the transfer whenWayne Davison2005-02-261-11/+32
| | | | --delete-after is happening.
* Moved the delete-before support into generator.c.Wayne Davison2005-02-261-6/+0
|
* One more tweak to the need_name_pipe logic.Wayne Davison2005-02-231-1/+2
|
* We need the name-pipe for --inplace these days.Wayne Davison2005-02-221-2/+3
|
* - If --remove-sent-files was specified, abort if we're pulling fromWayne Davison2005-02-201-0/+13
| | | | | | | a read-only module. - If need_messages_from_generator is set, make sure that the connection between the generator to the sender has multiplexed I/O enabled.
* Tweaked some externs.Wayne Davison2005-02-191-4/+4
|
* Moved the auto-setting of --verbose when --dry-run is specified intoWayne Davison2005-02-161-4/+0
| | | | options.c.
* Decided on a better option name --itemize-changes (-i).Wayne Davison2005-02-151-2/+2
|
* Don't force -v with -n if -w was specified.Wayne Davison2005-02-151-2/+3
|
* Set need_name_pipe if --fuzzy was specified.Wayne Davison2005-02-141-1/+3
|
* John E. Malmberg convinced me to standardize on #ifs for definedWayne Davison2005-02-141-2/+2
| | | | values instead of non-zero.
* Added missing calls to safe_fname() and full_fname().Wayne Davison2005-02-071-7/+7
|
* - Moved the cvs_exclude checks into send_filter_list() andWayne Davison2005-02-041-19/+5
| | | | | | | | recv_filter_list(). Because of this, we never skip these calls anymore, though read-batch processing indicates that the list should not really be sent by setting f_out to -1. - Moved the definintion of the "local_server" variable here from options.c.
* Call add_filter() and add_filter_file() with their new flag args.Wayne Davison2005-02-031-1/+1
|
* Tweaked check in front of delete_files() call.Wayne Davison2005-01-291-5/+3
|
* Change one call to add_cvs_excludes() to add_filter() to just addWayne Davison2005-01-291-6/+5
| | | | the per-dir .cvsignore rule for protocols < 29.
* Cast each value referenced from the struct mallinfo to a longWayne Davison2005-01-281-16/+24
| | | | in order to print it.