rsync/rsync.git
18 years agoGot rid of a newly-added trailing tab.
Wayne Davison [Mon, 6 Feb 2006 18:00:37 +0000 (18:00 +0000)]
Got rid of a newly-added trailing tab.

18 years agoMention the new output-escaping idiom and the multibyte support.
Wayne Davison [Mon, 6 Feb 2006 17:58:29 +0000 (17:58 +0000)]
Mention the new output-escaping idiom and the multibyte support.

18 years agoAllow the iconv_open() call to fail since we can now fall-back on
Wayne Davison [Mon, 6 Feb 2006 16:55:01 +0000 (16:55 +0000)]
Allow the iconv_open() call to fail since we can now fall-back on
isprint().  Got rid of the "646" mapping kluge too.

18 years ago- The iconv-supporting code can now ask filtered_fwrite() to use
Wayne Davison [Mon, 6 Feb 2006 16:54:12 +0000 (16:54 +0000)]
- The iconv-supporting code can now ask filtered_fwrite() to use
  isprint() when iconv() could not be setup.
- Changed the output idiom for escaped chars to use \#123 instead
  of \0123 because that makes it possible for a script to know for
  sure what version of rsync did the output (and thus, what the
  unescape rules are).

18 years agoHave default_charset() try mapping "646" -> "ASCII" instead of "ascii".
Wayne Davison [Mon, 6 Feb 2006 09:04:20 +0000 (09:04 +0000)]
Have default_charset() try mapping "646" -> "ASCII" instead of "ascii".

18 years agoAdded "const" to the default_charset() return.
Wayne Davison [Mon, 6 Feb 2006 09:00:37 +0000 (09:00 +0000)]
Added "const" to the default_charset() return.

18 years agoSolaris 9 and HP-UX 11.11 need us to look for libiconv_open,
Wayne Davison [Mon, 6 Feb 2006 08:57:16 +0000 (08:57 +0000)]
Solaris 9 and HP-UX 11.11 need us to look for libiconv_open,
not iconv_open (perhaps because iconf.h wasn't included in
the autoconf test).

18 years agoCheck to see if we need to include the iconv library.
Wayne Davison [Mon, 6 Feb 2006 08:35:18 +0000 (08:35 +0000)]
Check to see if we need to include the iconv library.

18 years agoMention the prepare-source script and the changes in the patches
Wayne Davison [Mon, 6 Feb 2006 07:57:03 +0000 (07:57 +0000)]
Mention the prepare-source script and the changes in the patches
dir.

18 years agoAdded dependencies for proto.h.
Wayne Davison [Mon, 6 Feb 2006 05:06:52 +0000 (05:06 +0000)]
Added dependencies for proto.h.

18 years agoThe "proto" target now builds target "proto.h" from the new
Wayne Davison [Mon, 6 Feb 2006 04:54:30 +0000 (04:54 +0000)]
The "proto" target now builds target "proto.h" from the new
prepare-source.mak makefile.

18 years agoChanged the "proto" target to "proto.h".
Wayne Davison [Mon, 6 Feb 2006 04:53:02 +0000 (04:53 +0000)]
Changed the "proto" target to "proto.h".

18 years agoMoved the targets "gen", "proto", and "man" to prepare-source.mak.
Wayne Davison [Mon, 6 Feb 2006 04:09:48 +0000 (04:09 +0000)]
Moved the targets "gen", "proto", and "man" to prepare-source.mak.

18 years agoAn easy way to run all the commands in prepare-source.mak.
Wayne Davison [Mon, 6 Feb 2006 04:08:14 +0000 (04:08 +0000)]
An easy way to run all the commands in prepare-source.mak.

18 years agoMoved the rules for generating files such as configure, config.h.in,
Wayne Davison [Mon, 6 Feb 2006 04:07:49 +0000 (04:07 +0000)]
Moved the rules for generating files such as configure, config.h.in,
proto.h, and the manpages into this separate makefile, allowing it to
be used without first running configure (which builds the Makefile).

18 years agoInclude --no-g in the popt-alias example in --perms.
Wayne Davison [Sun, 5 Feb 2006 15:31:31 +0000 (15:31 +0000)]
Include --no-g in the popt-alias example in --perms.

18 years agoIn default_charset(): if nl_langinfo() gives us "646", return "ascii".
Wayne Davison [Sun, 5 Feb 2006 07:20:10 +0000 (07:20 +0000)]
In default_charset(): if nl_langinfo() gives us "646", return "ascii".

18 years agoAdded a missing comma.
Wayne Davison [Sun, 5 Feb 2006 07:00:21 +0000 (07:00 +0000)]
Added a missing comma.

18 years agoSome more improvements to --perms and --executability from Matt and me.
Wayne Davison [Sun, 5 Feb 2006 06:40:18 +0000 (06:40 +0000)]
Some more improvements to --perms and --executability from Matt and me.

18 years agoAllow itemize() to flag ITEM_REPORT_PERMS anytime the permissions
Wayne Davison [Sun, 5 Feb 2006 06:13:34 +0000 (06:13 +0000)]
Allow itemize() to flag ITEM_REPORT_PERMS anytime the permissions
change (even if -p or -E aren't set).

18 years agoMake sure that we don't try to use iconv() without iconv.h.
Wayne Davison [Sun, 5 Feb 2006 04:52:11 +0000 (04:52 +0000)]
Make sure that we don't try to use iconv() without iconv.h.

18 years agoChanged HAVE_ICONV to HAVE_ICONV_OPEN.
Wayne Davison [Sun, 5 Feb 2006 04:45:23 +0000 (04:45 +0000)]
Changed HAVE_ICONV to HAVE_ICONV_OPEN.

18 years agoSwitched back to checking for iconv_open() due to HP-UX.
Wayne Davison [Sat, 4 Feb 2006 23:06:39 +0000 (23:06 +0000)]
Switched back to checking for iconv_open() due to HP-UX.

18 years agoCall setup_iconv().
Wayne Davison [Sat, 4 Feb 2006 22:03:44 +0000 (22:03 +0000)]
Call setup_iconv().

18 years agoUse iconv() (when available) to allow us to output multibyte
Wayne Davison [Sat, 4 Feb 2006 22:03:39 +0000 (22:03 +0000)]
Use iconv() (when available) to allow us to output multibyte
characters that are legal in the current locale.

18 years agoThe new function setup_iconv() initializes the ic_chck var.
Wayne Davison [Sat, 4 Feb 2006 22:03:33 +0000 (22:03 +0000)]
The new function setup_iconv() initializes the ic_chck var.

18 years ago- Changed the check for iconv_open() to just iconv().
Wayne Davison [Sat, 4 Feb 2006 22:03:21 +0000 (22:03 +0000)]
- Changed the check for iconv_open() to just iconv().
- Got rid of the --enable-iconv option for now.

18 years agoDon't do so much memory copying in mplex_write().
Wayne Davison [Sat, 4 Feb 2006 21:52:32 +0000 (21:52 +0000)]
Don't do so much memory copying in mplex_write().

18 years agoIn the compatibility comments: mention why we don't use grep -q.
Wayne Davison [Sat, 4 Feb 2006 19:44:19 +0000 (19:44 +0000)]
In the compatibility comments:  mention why we don't use grep -q.

18 years agoTest directory setgid inheritence when --perms is not in effect.
Wayne Davison [Sat, 4 Feb 2006 19:42:47 +0000 (19:42 +0000)]
Test directory setgid inheritence when --perms is not in effect.

18 years agoAdded a missing '(' in the opening comments.
Wayne Davison [Sat, 4 Feb 2006 19:29:13 +0000 (19:29 +0000)]
Added a missing '(' in the opening comments.

18 years agoAdded a special permission (o+t) to one of the files in the test.
Wayne Davison [Sat, 4 Feb 2006 19:28:45 +0000 (19:28 +0000)]
Added a special permission (o+t) to one of the files in the test.

18 years agoTweaked a function declaraion.
Wayne Davison [Sat, 4 Feb 2006 19:27:07 +0000 (19:27 +0000)]
Tweaked a function declaraion.

18 years ago- When not preserving permissions, ensure that a newly-created
Wayne Davison [Sat, 4 Feb 2006 19:09:46 +0000 (19:09 +0000)]
- When not preserving permissions, ensure that a newly-created
  directory's inherited sgid bit is preserved.
- When not preserving permissions, ensure that newly-created
  files/dirs don't inherit any special permissions.

18 years agoIgnore setfacl unless it tells us that it supports the -k option.
Wayne Davison [Sat, 4 Feb 2006 18:41:47 +0000 (18:41 +0000)]
Ignore setfacl unless it tells us that it supports the -k option.

18 years agoNeeded to make %G output "DEFAULT" when gid == GID_NONE.
Wayne Davison [Sat, 4 Feb 2006 18:40:41 +0000 (18:40 +0000)]
Needed to make %G output "DEFAULT" when gid == GID_NONE.

18 years agoImproved the --partial-dir section.
Wayne Davison [Fri, 3 Feb 2006 23:50:16 +0000 (23:50 +0000)]
Improved the --partial-dir section.

18 years agoDecided to undo the last change to avoid backward compatibility
Wayne Davison [Fri, 3 Feb 2006 23:40:37 +0000 (23:40 +0000)]
Decided to undo the last change to avoid backward compatibility
inconsistencies (it would have been the right thing to do if it
were done that way from the start, but not now).

18 years agoAvoid adding our own exclude of the partial-dir name if the
Wayne Davison [Fri, 3 Feb 2006 23:16:46 +0000 (23:16 +0000)]
Avoid adding our own exclude of the partial-dir name if the
user's filter rules already match it.

18 years agoMade the new %M escape handle multiple spaces in the timestamp
Wayne Davison [Fri, 3 Feb 2006 22:41:19 +0000 (22:41 +0000)]
Made the new %M escape handle multiple spaces in the timestamp
(which can occur if the user's system doesn't have strftime()).

18 years agoRemoved completed items.
Wayne Davison [Fri, 3 Feb 2006 20:49:25 +0000 (20:49 +0000)]
Removed completed items.

18 years agoMention who is outputting the "rsync error" or "rsync warning".
Wayne Davison [Fri, 3 Feb 2006 20:39:58 +0000 (20:39 +0000)]
Mention who is outputting the "rsync error" or "rsync warning".

18 years agoMention latest changes.
Wayne Davison [Fri, 3 Feb 2006 20:32:27 +0000 (20:32 +0000)]
Mention latest changes.

18 years agoLog when someone requests a module list.
Wayne Davison [Fri, 3 Feb 2006 20:28:19 +0000 (20:28 +0000)]
Log when someone requests a module list.

18 years agoDocument the new "log format" options: %M (modtime), %U (uid),
Wayne Davison [Fri, 3 Feb 2006 20:00:24 +0000 (20:00 +0000)]
Document the new "log format" options: %M (modtime), %U (uid),
%G (gid), and %B (perm bits).

18 years ago- Allow tab characters to appear in rwrite() messages.
Wayne Davison [Fri, 3 Feb 2006 19:59:25 +0000 (19:59 +0000)]
- Allow tab characters to appear in rwrite() messages.
- Added %M (modtime), %U (uid), %G (gid), and %B (perm bits) to
  log_formatted().

18 years agoA minor optimization to timestring.
Wayne Davison [Fri, 3 Feb 2006 19:40:16 +0000 (19:40 +0000)]
A minor optimization to timestring.

18 years agoAllow sigaction() to be used even if sigprocmask() isn't around
Wayne Davison [Fri, 3 Feb 2006 18:48:26 +0000 (18:48 +0000)]
Allow sigaction() to be used even if sigprocmask() isn't around
(or was manually disabled).

18 years agoSimplified the conditional prior to the SIGACTION code.
Wayne Davison [Fri, 3 Feb 2006 18:46:38 +0000 (18:46 +0000)]
Simplified the conditional prior to the SIGACTION code.

18 years agoA slight tweak to the conditionalized definition of SIGACTION().
Wayne Davison [Fri, 3 Feb 2006 18:34:09 +0000 (18:34 +0000)]
A slight tweak to the conditionalized definition of SIGACTION().

18 years agoDecided I don't like "set -x".
Wayne Davison [Fri, 3 Feb 2006 17:58:48 +0000 (17:58 +0000)]
Decided I don't like "set -x".

18 years agoThe calls to check_perms now pass a test number arg and
Wayne Davison [Fri, 3 Feb 2006 17:55:24 +0000 (17:55 +0000)]
The calls to check_perms now pass a test number arg and
don't check for failure (it will die on failure).

18 years agoImproved check_perms() to work with a directory, to have better
Wayne Davison [Fri, 3 Feb 2006 17:54:18 +0000 (17:54 +0000)]
Improved check_perms() to work with a directory, to have better
output on error, and to call test_fail on error.

18 years agoMoved check_perms() into rsync.fns and tweaked how it is called.
Wayne Davison [Fri, 3 Feb 2006 17:29:43 +0000 (17:29 +0000)]
Moved check_perms() into fns and tweaked how it is called.

18 years agoAdded a new function: check_perms().
Wayne Davison [Fri, 3 Feb 2006 17:28:03 +0000 (17:28 +0000)]
Added a new function: check_perms().

18 years agoMatt's executability test with a few tweaks (e.g. to avoid using
Wayne Davison [Fri, 3 Feb 2006 06:47:26 +0000 (06:47 +0000)]
Matt's executability test with a few tweaks (e.g. to avoid using
"stat").

18 years agoScratch-dir normalization from Matt: turn off any default ACLs (if
Wayne Davison [Fri, 3 Feb 2006 06:15:46 +0000 (06:15 +0000)]
Scratch-dir normalization from Matt: turn off any default ACLs (if
setfacl is available) and disable any directory setgid bit to avoid
confusing some tests.

18 years agoMention the sigaction() and sigprocmask() goodness.
Wayne Davison [Thu, 2 Feb 2006 22:38:55 +0000 (22:38 +0000)]
Mention the sigaction() and sigprocmask() goodness.

18 years agoFixed a hang.
Wayne Davison [Thu, 2 Feb 2006 22:34:30 +0000 (22:34 +0000)]
Fixed a hang.

18 years agoMoved the potential disabling of __attribute__ above the
Wayne Davison [Thu, 2 Feb 2006 22:24:33 +0000 (22:24 +0000)]
Moved the potential disabling of __attribute__ above the
relocated UNUSED() define.

18 years agoTweaked a couple lines in the code that handles --version.
Wayne Davison [Thu, 2 Feb 2006 11:40:32 +0000 (11:40 +0000)]
Tweaked a couple lines in the code that handles --version.

18 years agoChanged default logfile setting from /var/adm/rsyncd.log to
Wayne Davison [Thu, 2 Feb 2006 10:20:13 +0000 (10:20 +0000)]
Changed default logfile setting from /var/adm/rsyncd.log to
/var/log/rsyncd.log.

18 years agoChanged sig_int() to use a standard signal-handler prototype.
Wayne Davison [Thu, 2 Feb 2006 02:39:40 +0000 (02:39 +0000)]
Changed sig_int() to use a standard signal-handler prototype.

18 years ago- Call SIGACTION() instead of signal().
Wayne Davison [Thu, 2 Feb 2006 02:39:29 +0000 (02:39 +0000)]
- Call SIGACTION() instead of signal().
- Umask all the signals we need using sigprocmask() (if available).

18 years agoCall SIGACTION() instead of signal().
Wayne Davison [Thu, 2 Feb 2006 02:39:25 +0000 (02:39 +0000)]
Call SIGACTION() instead of signal().

18 years ago- Moved definition of UNUSED() above inclusion of proto.h.
Wayne Davison [Thu, 2 Feb 2006 02:39:19 +0000 (02:39 +0000)]
- Moved definition of UNUSED() above inclusion of proto.h.
- Replaced definition of SIGNAL_CAST with new SIGACTION() define,
  which will use sigaction() if it is available, else signal().

18 years agoAdded checks for sigaction() and sigprocmask().
Wayne Davison [Thu, 2 Feb 2006 02:32:39 +0000 (02:32 +0000)]
Added checks for sigaction() and sigprocmask().

18 years agoLook for public functions that return RETSIGTYPE.
Wayne Davison [Thu, 2 Feb 2006 02:29:30 +0000 (02:29 +0000)]
Look for public functions that return RETSIGTYPE.

18 years agoIgnore the --quiet option if someone sent it to us (which doesn't
Wayne Davison [Wed, 1 Feb 2006 19:36:37 +0000 (19:36 +0000)]
Ignore the --quiet option if someone sent it to us (which doesn't
happen when talking to a normal client).

18 years agoWhen complaining about a socket-read problem, use an FSOCKERR
Wayne Davison [Wed, 1 Feb 2006 19:35:17 +0000 (19:35 +0000)]
When complaining about a socket-read problem, use an FSOCKERR
code instead of a normal FERROR.  The generator is the only
process that will receive this, and it uses it to close down
the multi-I/O over the socket so that it won't ever hang trying
to write an error down a dead socket.

18 years agoTurn an FSOCKERR into a normal FERROR if it's not going to our
Wayne Davison [Wed, 1 Feb 2006 19:33:12 +0000 (19:33 +0000)]
Turn an FSOCKERR into a normal FERROR if it's not going to our
sibling.

18 years agoAdded FSOCKERR and MSG_SOCKERR (a sibling-only message).
Wayne Davison [Wed, 1 Feb 2006 19:26:34 +0000 (19:26 +0000)]
Added FSOCKERR and MSG_SOCKERR (a sibling-only message).

18 years agoWe should be using wait_process(), not waitpid() directly.
Wayne Davison [Wed, 1 Feb 2006 19:25:34 +0000 (19:25 +0000)]
We should be using wait_process(), not waitpid() directly.

18 years agoChanged a few "ret" variables to have better names.
Wayne Davison [Wed, 1 Feb 2006 19:24:28 +0000 (19:24 +0000)]
Changed a few "ret" variables to have better names.

18 years agoThe itemize() output now mentions -E permissions changes.
Wayne Davison [Tue, 31 Jan 2006 06:25:46 +0000 (06:25 +0000)]
The itemize() output now mentions -E permissions changes.

18 years agoMention the --executability option.
Wayne Davison [Tue, 31 Jan 2006 03:40:22 +0000 (03:40 +0000)]
Mention the --executability option.

18 years agoAnother help-text tweak.
Wayne Davison [Tue, 31 Jan 2006 03:11:07 +0000 (03:11 +0000)]
Another help-text tweak.

18 years agoMoved where --chmod was listed.
Wayne Davison [Tue, 31 Jan 2006 03:05:24 +0000 (03:05 +0000)]
Moved where --chmod was listed.

18 years agoMoved --chmod in the help output.
Wayne Davison [Tue, 31 Jan 2006 03:04:00 +0000 (03:04 +0000)]
Moved --chmod in the help output.

18 years agoWhen permissions aren't being preserved, set them via the new
Wayne Davison [Tue, 31 Jan 2006 02:30:09 +0000 (02:30 +0000)]
When permissions aren't being preserved, set them via the new
dest_mode() function.

18 years agoGot rid of the orig_umask-based file->mode tweak in receive_file()
Wayne Davison [Tue, 31 Jan 2006 02:30:05 +0000 (02:30 +0000)]
Got rid of the orig_umask-based file->mode tweak in receive_file()
(which got moved into the dest_mode() function).

18 years agoAdded the dest_mode() function: it figures out the permissions for
Wayne Davison [Tue, 31 Jan 2006 02:30:02 +0000 (02:30 +0000)]
Added the dest_mode() function: it figures out the permissions for
a file when we aren't preserving permissions, including the honoring
of the new --executability option.

18 years agoAdded the --executability (-E) option.
Wayne Davison [Tue, 31 Jan 2006 02:29:58 +0000 (02:29 +0000)]
Added the --executability (-E) option.

18 years agoDocumented the new --executability (-E) option, with improvements
Wayne Davison [Tue, 31 Jan 2006 02:29:55 +0000 (02:29 +0000)]
Documented the new --executability (-E) option, with improvements
to the --perms and --chmod sections as well.

18 years agoMention the chmod utility's manpage number.
Wayne Davison [Tue, 31 Jan 2006 02:26:49 +0000 (02:26 +0000)]
Mention the chmod utility's manpage number.

18 years agoMention that --chmod's work can still be masked by the receiving
Wayne Davison [Mon, 30 Jan 2006 22:10:33 +0000 (22:10 +0000)]
Mention that --chmod's work can still be masked by the receiving
end's umask when permissions are not being preserved.

18 years agoMention files-to-excludes.
Wayne Davison [Mon, 30 Jan 2006 21:54:00 +0000 (21:54 +0000)]
Mention files-to-excludes.

18 years agoThis perl script automates the conversion of a list of pathnames
Wayne Davison [Mon, 30 Jan 2006 21:52:17 +0000 (21:52 +0000)]
This perl script automates the conversion of a list of pathnames
to a set of includes/excludes needed for rsync to copy just the
listed files.

18 years agoMentioned the new "outgoing chmod" daemon option.
Wayne Davison [Mon, 30 Jan 2006 21:47:23 +0000 (21:47 +0000)]
Mentioned the new "outgoing chmod" daemon option.

18 years agoDocumented the new "outgoing chmod" daemon option.
Wayne Davison [Mon, 30 Jan 2006 21:47:08 +0000 (21:47 +0000)]
Documented the new "outgoing chmod" daemon option.

18 years agoAdded support for the new "outgoing chmod" daemon option.
Wayne Davison [Mon, 30 Jan 2006 21:47:02 +0000 (21:47 +0000)]
Added support for the new "outgoing chmod" daemon option.

18 years agoMentioned the early-EOF bugfix (which was fixed a while ago).
Wayne Davison [Mon, 30 Jan 2006 20:09:46 +0000 (20:09 +0000)]
Mentioned the early-EOF bugfix (which was fixed a while ago).

18 years agoImproved the documentation for --force.
Wayne Davison [Mon, 30 Jan 2006 18:46:17 +0000 (18:46 +0000)]
Improved the documentation for --force.

18 years agoI realized that there were instances where --force could still be
Wayne Davison [Mon, 30 Jan 2006 18:45:57 +0000 (18:45 +0000)]
I realized that there were instances where --force could still be
required to be combined with a delete option (if a non-dir was
overwriting a dir in a directory that was not included in the
transfer), so I extended the change I just made for --delete-after
to include all delete modes.

18 years agoAllow --force to work even if --recurse was not specified.
Wayne Davison [Mon, 30 Jan 2006 18:35:54 +0000 (18:35 +0000)]
Allow --force to work even if --recurse was not specified.

18 years agoMade get_dirlist() always include directories.
Wayne Davison [Mon, 30 Jan 2006 18:32:47 +0000 (18:32 +0000)]
Made get_dirlist() always include directories.

18 years agoMention the latest improvements.
Wayne Davison [Mon, 30 Jan 2006 18:19:55 +0000 (18:19 +0000)]
Mention the latest improvements.

18 years agoAllow a non-empty dir to be overwritten by a non-dir with all the
Wayne Davison [Mon, 30 Jan 2006 18:14:02 +0000 (18:14 +0000)]
Allow a non-empty dir to be overwritten by a non-dir with all the
delete options (--delete-after used to require --force).

18 years agoIf the module has defined an "incoming chmod" option, call
Wayne Davison [Mon, 30 Jan 2006 17:53:38 +0000 (17:53 +0000)]
If the module has defined an "incoming chmod" option, call
parse_chmod() on it.

18 years agoAdded the "incoming chmod" config option.
Wayne Davison [Mon, 30 Jan 2006 17:53:32 +0000 (17:53 +0000)]
Added the "incoming chmod" config option.