Wayne Davison
c2a2147a5b
- Call safe_stat() instead of do_stat() when a sanitizing daemon might
...
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().
2006-05-03 00:48:32 +00:00
Wayne Davison
b24498ec2c
Set a new variable, startdir_depth, to indicate how deep the
...
destination dir is in a daemon module's path.
2006-05-02 16:42:20 +00:00
Wayne Davison
7c58c99184
We sanitize the --*-dest args here so they can be relative to the
...
destination directory.
2006-04-28 16:58:20 +00:00
Wayne Davison
e7c67065c0
Updated the FSF's address to an even newer one.
2006-04-25 23:51:12 +00:00
Wayne Davison
0f78b81511
- Updated the address for the FSF in the opening comment.
...
- 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).
2006-04-25 20:23:34 +00:00
Wayne Davison
44c26bf2a1
Don't allow overwriting a non-directory with a directory (just
...
like cp).
2006-03-02 03:53:42 +00:00
Wayne Davison
cc8c5057fe
If get_local_name() fails to stat() the destination for any
...
reason other than the destination does not exist, mention the
error and exit.
2006-03-02 03:40:09 +00:00
Wayne Davison
a695b379b5
Make sure the receiver resets copy_dirlinks (so that it can't
...
affect the delete scan).
2006-02-24 17:54:41 +00:00
Wayne Davison
05278935a3
- Call mkdir_defmode() instead of do_mkdir().
...
- Define orig_umask in this file, not options.c.
- Made orig_umask a mode_t, not an int.
2006-02-24 01:56:10 +00:00
Wayne Davison
ee8e2b1547
Rsync no longer returns a usage error when used with one local
...
source arg and no destination: this now implies the --list-only
option, just like one remote source arg has always done.
2006-02-23 00:38:34 +00:00
Wayne Davison
6d59ac192b
Made the formerly static sigchld_handler() available as a
...
public function named remember_children().
2006-02-20 17:16:21 +00:00
Wayne Davison
55e54e464b
We now ignore the SIGXFSZ signal (if it is defined).
2006-02-11 02:36:35 +00:00
Wayne Davison
595251de24
Make sure that we don't try to use iconv() without iconv.h.
2006-02-05 04:52:11 +00:00
Wayne Davison
c85631421d
Changed HAVE_ICONV to HAVE_ICONV_OPEN.
2006-02-05 04:45:23 +00:00
Wayne Davison
9656de5d13
Call setup_iconv().
2006-02-04 22:03:44 +00:00
Wayne Davison
8261af7422
Allow sigaction() to be used even if sigprocmask() isn't around
...
(or was manually disabled).
2006-02-03 18:48:26 +00:00
Wayne Davison
60ee01f517
- Call SIGACTION() instead of signal().
...
- Umask all the signals we need using sigprocmask() (if available).
2006-02-02 02:39:29 +00:00
Wayne Davison
eb598fac4f
- Improved get_local_name() using ideas from Matt McCutchen's
...
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.
2006-01-15 07:11:23 +00:00
Wayne Davison
45c49b52a4
Got rid of calls to (the soon to vanish) safe_fname() function.
2006-01-13 21:17:09 +00:00
Wayne Davison
6bf32edb8c
Return RERR_SIGNAL1 from sigusr1_handler().
2005-12-16 23:48:34 +00:00
Wayne Davison
82f0c63e8a
Parse single- and double-quotes in the --rsh/-e option (and RSYNC_RSH).
2005-12-14 22:00:01 +00:00
Wayne Davison
60613dc896
Output the stats and the end-of-run verbose output using the new
...
human_num() and human_dnum() functions, which both honor the
new --human-readable option.
2005-11-12 19:53:26 +00:00
Wayne Davison
acee11fc60
- Indent the "oom:" label away from column 0.
...
- Got rid of a superfluous newline.
2005-11-10 16:47:27 +00:00
Wayne Davison
8fd30fc43c
Got rid of some early-checksum code that accidentally got committed.
2005-11-02 07:22:02 +00:00
Wayne Davison
84e6d6fdcd
- Changed the "status" variables into "exit_code" variables.
...
- Added an error message to wait_process_with_flush() that
reports the errno we get when waitpid() fails.
- Increased the value of MAXCHILDPROCS.
2005-10-26 15:53:04 +00:00
Wayne Davison
97d8e7095f
Changed wait_process() into a simpler, yet more versatile function,
...
and used it in the new wait_process_with_flush() function (the old
function's new name). Made wait_process() public.
2005-10-24 21:03:47 +00:00
Wayne Davison
40e6752fba
Some systems don't define WCOREDUMP(), so #ifdef that code.
2005-09-26 17:41:14 +00:00
Wayne Davison
dbefb6b4e4
Fixed wait_process() to handle cases where waitpid() fails or
...
the child process did not exit cleanly.
2005-09-26 17:12:13 +00:00
Wayne Davison
29fad7a3d8
Got rid of some old command-line parsing code that was only
...
useful when talking to a 1.x client.
2005-09-16 16:40:30 +00:00
Wayne Davison
496be30db6
Got rid of some unused externs.
2005-07-22 17:59:21 +00:00
Wayne Davison
3f7bfac2a0
Avoid newest test when no destination was specified.
2005-07-15 19:10:03 +00:00
Wayne Davison
9425918d74
Output a syntax error if both the source and destination are remote.
2005-07-15 19:06:43 +00:00
Wayne Davison
e4676bb59b
Make the --stats output come out after any delete-after messages.
2005-05-12 07:43:14 +00:00
Wayne Davison
d8c4d6de10
Use new MAX_SERVER_ARGS define instead of hard-wired "100".
2005-05-03 17:04:26 +00:00
Wayne Davison
9d19f8a5fe
When rsync encountered an empty file list, it behaved differently
...
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).
2005-04-23 22:30:08 +00:00
Wayne Davison
e8a96e275e
- Only do read-/write-batch processing if we're not the server (needed
...
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).
2005-04-09 18:59:49 +00:00
Wayne Davison
d940151496
- Conditionally include <locale.h>.
...
- Conditionally call setlocale(LC_CTYPE, "").
2005-04-01 17:25:37 +00:00
Wayne Davison
c87ae64a82
Moved a call to output_summary() up a line.
2005-03-30 16:55:11 +00:00
Wayne Davison
33c4b445ef
Split report() into handle_stats() and output_report() so that (1)
...
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.
2005-03-29 11:11:35 +00:00
Wayne Davison
c7791b8cb2
Mention the index number for an "invalid packet at end of run".
2005-03-15 17:30:50 +00:00
Wayne Davison
c70e07d9ac
Got rid of the name-pipe from the generator to the receiver.
2005-03-09 18:54:09 +00:00
Wayne Davison
3485ae8321
A few minor tweaks to improve two error messages and make better use
...
of the "the_file_list" global.
2005-03-05 00:21:54 +00:00
Wayne Davison
a00628b335
- Set the new global "the_file_list".
...
- Got rid of test of read_batch in an am_sender section since
there is never a sender process for --read-batch.
2005-03-03 18:44:06 +00:00
Wayne Davison
42ccb4c091
Made the argv/argc parsing a little nicer.
2005-03-01 03:39:35 +00:00
Wayne Davison
860236bf90
- Changes needed to handle new filesfrom_host variable.
...
- Changes needed to use check_for_hostspec() in place of find_colon().
2005-03-01 01:16:03 +00:00
Wayne Davison
9e0582f9bf
Tweaked a comment.
2005-02-28 02:04:42 +00:00
Wayne Davison
1a8e5c97eb
Complain if the run-terminating keep-alive packets aren't what
...
we expected.
2005-02-27 20:50:07 +00:00
Wayne Davison
40df65fdb4
- Seems to me that sigusr2_handler() should call close_all() for
...
the sake of MS Windows.
- Improved some comments.
2005-02-27 07:33:01 +00:00
Wayne Davison
051182cb75
Set kluge_around_eof to a -1 for the receiver's needs.
2005-02-26 20:58:08 +00:00
Wayne Davison
e777afad6f
Set kludge_around_eof when the receiver is trying to read a
...
potential keep-alive message that may never come.
2005-02-26 20:21:12 +00:00