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.
Wayne Davison [Sat, 4 Feb 2006 21:52:32 +0000 (21:52 +0000)]
Don't do so much memory copying in mplex_write().
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.
Wayne Davison [Sat, 4 Feb 2006 19:42:47 +0000 (19:42 +0000)]
Test directory setgid inheritence when --perms is not in effect.
Wayne Davison [Sat, 4 Feb 2006 19:29:13 +0000 (19:29 +0000)]
Added a missing '(' in the opening comments.
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.
Wayne Davison [Sat, 4 Feb 2006 19:27:07 +0000 (19:27 +0000)]
Tweaked a function declaraion.
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.
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.
Wayne Davison [Sat, 4 Feb 2006 18:40:41 +0000 (18:40 +0000)]
Needed to make %G output "DEFAULT" when gid == GID_NONE.
Wayne Davison [Fri, 3 Feb 2006 23:50:16 +0000 (23:50 +0000)]
Improved the --partial-dir section.
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).
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.
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()).
Wayne Davison [Fri, 3 Feb 2006 20:49:25 +0000 (20:49 +0000)]
Removed completed items.
Wayne Davison [Fri, 3 Feb 2006 20:39:58 +0000 (20:39 +0000)]
Mention who is outputting the "rsync error" or "rsync warning".
Wayne Davison [Fri, 3 Feb 2006 20:32:27 +0000 (20:32 +0000)]
Mention latest changes.
Wayne Davison [Fri, 3 Feb 2006 20:28:19 +0000 (20:28 +0000)]
Log when someone requests a module list.
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).
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().
Wayne Davison [Fri, 3 Feb 2006 19:40:16 +0000 (19:40 +0000)]
A minor optimization to timestring.
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).
Wayne Davison [Fri, 3 Feb 2006 18:46:38 +0000 (18:46 +0000)]
Simplified the conditional prior to the SIGACTION code.
Wayne Davison [Fri, 3 Feb 2006 18:34:09 +0000 (18:34 +0000)]
A slight tweak to the conditionalized definition of SIGACTION().
Wayne Davison [Fri, 3 Feb 2006 17:58:48 +0000 (17:58 +0000)]
Decided I don't like "set -x".
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).
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.
Wayne Davison [Fri, 3 Feb 2006 17:29:43 +0000 (17:29 +0000)]
Moved check_perms() into fns and tweaked how it is called.
Wayne Davison [Fri, 3 Feb 2006 17:28:03 +0000 (17:28 +0000)]
Added a new function: check_perms().
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").
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.
Wayne Davison [Thu, 2 Feb 2006 22:38:55 +0000 (22:38 +0000)]
Mention the sigaction() and sigprocmask() goodness.
Wayne Davison [Thu, 2 Feb 2006 22:34:30 +0000 (22:34 +0000)]
Fixed a hang.
Wayne Davison [Thu, 2 Feb 2006 22:24:33 +0000 (22:24 +0000)]
Moved the potential disabling of __attribute__ above the
relocated UNUSED() define.
Wayne Davison [Thu, 2 Feb 2006 11:40:32 +0000 (11:40 +0000)]
Tweaked a couple lines in the code that handles --version.
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.
Wayne Davison [Thu, 2 Feb 2006 02:39:40 +0000 (02:39 +0000)]
Changed sig_int() to use a standard signal-handler prototype.
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).
Wayne Davison [Thu, 2 Feb 2006 02:39:25 +0000 (02:39 +0000)]
Call SIGACTION() instead of signal().
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().
Wayne Davison [Thu, 2 Feb 2006 02:32:39 +0000 (02:32 +0000)]
Added checks for sigaction() and sigprocmask().
Wayne Davison [Thu, 2 Feb 2006 02:29:30 +0000 (02:29 +0000)]
Look for public functions that return RETSIGTYPE.
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).
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.
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.
Wayne Davison [Wed, 1 Feb 2006 19:26:34 +0000 (19:26 +0000)]
Added FSOCKERR and MSG_SOCKERR (a sibling-only message).
Wayne Davison [Wed, 1 Feb 2006 19:25:34 +0000 (19:25 +0000)]
We should be using wait_process(), not waitpid() directly.
Wayne Davison [Wed, 1 Feb 2006 19:24:28 +0000 (19:24 +0000)]
Changed a few "ret" variables to have better names.
Wayne Davison [Tue, 31 Jan 2006 06:25:46 +0000 (06:25 +0000)]
The itemize() output now mentions -E permissions changes.
Wayne Davison [Tue, 31 Jan 2006 03:40:22 +0000 (03:40 +0000)]
Mention the --executability option.
Wayne Davison [Tue, 31 Jan 2006 03:11:07 +0000 (03:11 +0000)]
Another help-text tweak.
Wayne Davison [Tue, 31 Jan 2006 03:05:24 +0000 (03:05 +0000)]
Moved where --chmod was listed.
Wayne Davison [Tue, 31 Jan 2006 03:04:00 +0000 (03:04 +0000)]
Moved --chmod in the help output.
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.
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).
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.
Wayne Davison [Tue, 31 Jan 2006 02:29:58 +0000 (02:29 +0000)]
Added the --executability (-E) option.
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.
Wayne Davison [Tue, 31 Jan 2006 02:26:49 +0000 (02:26 +0000)]
Mention the chmod utility's manpage number.
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.
Wayne Davison [Mon, 30 Jan 2006 21:54:00 +0000 (21:54 +0000)]
Mention files-to-excludes.
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.
Wayne Davison [Mon, 30 Jan 2006 21:47:23 +0000 (21:47 +0000)]
Mentioned 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.
Wayne Davison [Mon, 30 Jan 2006 21:47:02 +0000 (21:47 +0000)]
Added support for the new "outgoing chmod" daemon option.
Wayne Davison [Mon, 30 Jan 2006 20:09:46 +0000 (20:09 +0000)]
Mentioned the early-EOF bugfix (which was fixed a while ago).
Wayne Davison [Mon, 30 Jan 2006 18:46:17 +0000 (18:46 +0000)]
Improved the documentation for --force.
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.
Wayne Davison [Mon, 30 Jan 2006 18:35:54 +0000 (18:35 +0000)]
Allow --force to work even if --recurse was not specified.
Wayne Davison [Mon, 30 Jan 2006 18:32:47 +0000 (18:32 +0000)]
Made get_dirlist() always include directories.
Wayne Davison [Mon, 30 Jan 2006 18:19:55 +0000 (18:19 +0000)]
Mention the latest improvements.
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).
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.
Wayne Davison [Mon, 30 Jan 2006 17:53:32 +0000 (17:53 +0000)]
Added the "incoming chmod" config option.
Wayne Davison [Mon, 30 Jan 2006 17:53:27 +0000 (17:53 +0000)]
Document the new "incoming chmod" config option.
Wayne Davison [Mon, 30 Jan 2006 17:53:19 +0000 (17:53 +0000)]
Call the parse_chmod() with its new syntax.
Wayne Davison [Mon, 30 Jan 2006 17:53:13 +0000 (17:53 +0000)]
Changed the way the parse_chmod() function is called.
Wayne Davison [Mon, 30 Jan 2006 17:39:43 +0000 (17:39 +0000)]
Added extern for io_write_phase.
Wayne Davison [Mon, 30 Jan 2006 17:39:34 +0000 (17:39 +0000)]
- Got rid of the externs for io_read_phase and io_write_phase.
- Added stub definition for chmod_mode_struct.
Wayne Davison [Mon, 30 Jan 2006 08:12:17 +0000 (08:12 +0000)]
Moved the filter_outfile() function to rsync.fns.
Wayne Davison [Mon, 30 Jan 2006 08:11:50 +0000 (08:11 +0000)]
Moved the filter_outfile() function here since it was identical
in devices.test and itemize.test.
Wayne Davison [Mon, 30 Jan 2006 07:18:16 +0000 (07:18 +0000)]
The robust_rename() function now takes a "partialptr" arg that, if
non-NULL, will be used if we are forced to copy the file.
Wayne Davison [Mon, 30 Jan 2006 07:18:13 +0000 (07:18 +0000)]
The finish_transfer() function now takes a "partialptr" arg that, if
non-NULL, will be used if robust_rename() is forced to copy the temp
file.
Wayne Davison [Mon, 30 Jan 2006 07:18:10 +0000 (07:18 +0000)]
Call finish_transfer() with a valid partialptr string, when
appropriate.
Wayne Davison [Mon, 30 Jan 2006 07:18:06 +0000 (07:18 +0000)]
Call finish_transfer() with its newly-added arg.
Wayne Davison [Mon, 30 Jan 2006 07:18:03 +0000 (07:18 +0000)]
Call robust_rename() with its newly-added arg.
Wayne Davison [Mon, 30 Jan 2006 07:18:00 +0000 (07:18 +0000)]
Document the side-effect that --partial-dir can have on --temp-dir.
Wayne Davison [Mon, 30 Jan 2006 06:34:57 +0000 (06:34 +0000)]
More improvements to --temp-dir.
Wayne Davison [Mon, 30 Jan 2006 00:39:59 +0000 (00:39 +0000)]
Changed the mode arg from an int to a mode_t.
Wayne Davison [Sun, 29 Jan 2006 20:31:59 +0000 (20:31 +0000)]
Improved the --temp-dir description and a couple other sentences.
Wayne Davison [Sun, 29 Jan 2006 20:30:24 +0000 (20:30 +0000)]
- Renamed set_perms() to set_file_attrs().
- Use the renamed PERMS_* defines: ATTRS_*.
Wayne Davison [Sun, 29 Jan 2006 20:30:18 +0000 (20:30 +0000)]
- Use the renamed PERMS_* defines: ATTRS_*.
- Call the new name of set_perms(): set_file_attrs().
Wayne Davison [Sun, 29 Jan 2006 20:30:12 +0000 (20:30 +0000)]
Call the new name of set_perms(): set_file_attrs().
Wayne Davison [Sun, 29 Jan 2006 20:30:07 +0000 (20:30 +0000)]
Renamed the PERMS_* defines to ATTRS_* defines.
Wayne Davison [Sun, 29 Jan 2006 20:30:02 +0000 (20:30 +0000)]
Use PERMSTRING_SIZE rather than a hard-wired "11".
Wayne Davison [Sun, 29 Jan 2006 19:17:13 +0000 (19:17 +0000)]
No need to send --partial when we're the receiver.
Wayne Davison [Sun, 29 Jan 2006 18:52:53 +0000 (18:52 +0000)]
Made a bunch of char* args const.
Wayne Davison [Sun, 29 Jan 2006 07:19:38 +0000 (07:19 +0000)]
Avoid forwarding the --temp-dir option to the server when we're
the receiver.
Wayne Davison [Sat, 28 Jan 2006 19:20:02 +0000 (19:20 +0000)]
Made the new --prune-empty-dirs code a little more memory efficient.
Wayne Davison [Sat, 28 Jan 2006 08:12:16 +0000 (08:12 +0000)]
Tweaked a variable name in flist_find().