aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
Commit message (Collapse)AuthorAgeFilesLines
* Moved the calls to init_hard_links() into flist.c.Wayne Davison2006-12-151-10/+0
|
* Call the new hard-link init functions.Wayne Davison2006-12-091-1/+11
|
* Some minor format tweaks.Wayne Davison2006-12-071-8/+3
|
* The wait_process() call now handles EINTR.Wayne Davison2006-12-061-1/+5
|
* #ifdef calls to hard-link functions.Wayne Davison2006-12-061-0/+2
|
* - Typical tranfers now save 12-20 bytes per file because several varsWayne Davison2006-12-031-2/+2
| | | | | | | were moved out of file_struct into an optional member-var setup. - Renamed and reorganized the FLAG_* defines. - Use NDX_DONE instead of a literal -1 when sending/checking the end-of-phase index value.
* Output the size of the file list using human_num().Wayne Davison2006-11-211-1/+2
|
* Changed sprintf() calls to snprintf().Wayne Davison2006-10-131-2/+2
|
* Removed the changes in symlink handling in non-chroot daemon mode asWayne Davison2006-10-121-15/+1
| | | | | they were not yet safe (I'll consider similar changes for the next release).
* Added a new variable, new_root_dir, that is set if we created theWayne Davison2006-10-111-0/+3
| | | | destination directory.
* Changed the fix_basis_dirs() function to only remove a single ../Wayne Davison2006-10-101-7/+18
| | | | prefix from each --*-dest option's path.
* - Call push_dir() with its new boolean arg, including the spot inWayne Davison2006-10-081-9/+34
| | | | | | | | | get_local_name() where we need push_dir() to skip the chdir() because the destination dir does no yet exist and --dry-run was specified. - Added fix_basis_dirs(), which will combine the dest-dir with each non- absolute basis_dir arg to make sure that they end up being relative to the right dir when --dry-run was specified and the dest dir does not yet exist.
* Decided that I like remove-source-files better than remove-sender-files.Wayne Davison2006-06-301-3/+3
|
* The remove_sent_files var was renamed to remove_sender_files.Wayne Davison2006-06-301-3/+4
|
* Improved some comments in get_local_name() and improved theWayne Davison2006-06-051-12/+19
| | | | error checking a little more.
* Changed rprintf() messages that started with a newline into twoWayne Davison2006-06-011-5/+8
| | | | rprintf() calls (the first of which just outputs an empty line).
* Got rid of the call to log_exit() now that the cleanup code handles this.Wayne Davison2006-05-091-1/+0
|
* - Moved the sanitizing of the partial_dir value here from options.c.Wayne Davison2006-05-051-1/+27
| | | | | | - Call die_on_unsafe_path() in a few needed places. - Handle the server-excluded checks for an absolute partial_dir and the --*-dest options.
* Call the new die_on_unsafe_path() function in a few places.Wayne Davison2006-05-051-4/+16
|
* - Call safe_stat() instead of do_stat() when a sanitizing daemon mightWayne Davison2006-05-031-9/+3
| | | | | | need to ensure that it doesn't follow any unsafe symlinks. - Got rid of startdir_depth code (in favor of util.c's curr_dir_depth). - Use the new calling syntax for sanitize_path().
* Set a new variable, startdir_depth, to indicate how deep theWayne Davison2006-05-021-5/+8
| | | | destination dir is in a daemon module's path.
* We sanitize the --*-dest args here so they can be relative to theWayne Davison2006-04-281-0/+15
| | | | destination directory.
* Updated the FSF's address to an even newer one.Wayne Davison2006-04-251-3/+3
|
* - Updated the address for the FSF in the opening comment.Wayne Davison2006-04-251-21/+23
| | | | | | | - Standardized the format of the opening comment, including adding a brief description of what's in the file for those that lacked it. - Added some missing copyright lines. - Some minor whitespace tweaks (in a few of the files).
* Don't allow overwriting a non-directory with a directory (justWayne Davison2006-03-021-0/+7
| | | | like cp).
* If get_local_name() fails to stat() the destination for anyWayne Davison2006-03-021-2/+6
| | | | | reason other than the destination does not exist, mention the error and exit.
* Make sure the receiver resets copy_dirlinks (so that it can'tWayne Davison2006-02-241-1/+2
| | | | affect the delete scan).
* - Call mkdir_defmode() instead of do_mkdir().Wayne Davison2006-02-241-5/+3
| | | | | - Define orig_umask in this file, not options.c. - Made orig_umask a mode_t, not an int.
* Rsync no longer returns a usage error when used with one localWayne Davison2006-02-231-8/+10
| | | | | source arg and no destination: this now implies the --list-only option, just like one remote source arg has always done.
* Made the formerly static sigchld_handler() available as aWayne Davison2006-02-201-5/+5
| | | | public function named remember_children().
* We now ignore the SIGXFSZ signal (if it is defined).Wayne Davison2006-02-111-0/+3
|
* Make sure that we don't try to use iconv() without iconv.h.Wayne Davison2006-02-051-2/+2
|
* Changed HAVE_ICONV to HAVE_ICONV_OPEN.Wayne Davison2006-02-051-2/+2
|
* Call setup_iconv().Wayne Davison2006-02-041-0/+6
|
* Allow sigaction() to be used even if sigprocmask() isn't aroundWayne Davison2006-02-031-4/+10
| | | | (or was manually disabled).
* - Call SIGACTION() instead of signal().Wayne Davison2006-02-021-12/+27
| | | | - Umask all the signals we need using sigprocmask() (if available).
* - 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
|