Wayne Davison
deee574b11
Added a paranoid length check.
2006-10-13 23:17:30 +00:00
Wayne Davison
55410368e5
- Changed strcpy() calls into strlcpy() calls, just to be extra safe.
...
- Added a default: exit_cleanup() case to a switch.
- Made the check_name() function take a buffer size arg.
2006-10-13 23:17:27 +00:00
Wayne Davison
e4fdf1debe
- Use precompiler conditionals in to_wire_mode() and from_write_mode()
...
to get rid of code that is not needed on the current system.
- Silence a code-checker warning in send_file_entry().
- Silence a code-checker warning in make_file().
- Fixed a bug in f_name_cmp() that could compare an empty filename
incorrectly (which might only happen if we transformed a dot-dir
into an empty name). (Thanks, code checker!)
2006-10-13 17:07:13 +00:00
Wayne Davison
1580899c1d
More temporary name juggling to get all code analyzed.
2006-10-13 17:02:39 +00:00
Wayne Davison
f863b76300
Changed one more exit_cleanup() call into EXIT_OR_RETURN().
2006-10-13 14:28:56 +00:00
Wayne Davison
5e1ec06f09
Temporarily reorder the OBJS line so that the IBM code checker
...
can analyze some of the other programs (since it runs out of
time analyzing them all).
2006-10-13 14:17:22 +00:00
Wayne Davison
36e2ea6068
Use new FNONE value when setting/comparing enum logcode vars.
2006-10-13 07:48:35 +00:00
Wayne Davison
f4164b73b4
- Use the new FNONE enum instead of a literal 0 value.
2006-10-13 07:38:21 +00:00
Wayne Davison
9ef506a2b2
If in_exit_cleanup is set, some of our functions return instead of
...
calling exit_cleanup() (which is a safer way to avoid an infinite
loop when the exit code uses the log functions than allowing the
_exit_cleanup() function to return back into our code).
2006-10-13 07:38:18 +00:00
Wayne Davison
b1b54199ef
- When exiting, set the flag "in_exit_cleanup".
...
- Mark _exit_cleanup() with NORETURN.
- Don't ever return from _exit_cleanup().
2006-10-13 07:38:15 +00:00
Wayne Davison
33394b769d
Mark out_of_memory() and overflow_exit() with NORETURN.
2006-10-13 07:38:11 +00:00
Wayne Davison
011e85a5e3
- Added FNONE to the "enum logcode" values.
...
- Added a NORETURN define to mark a function that never returns.
2006-10-13 07:38:05 +00:00
Wayne Davison
d5dcb6f775
Silence some IBM checker warnings and made a slight optimization
...
to get_tmpname().
2006-10-13 07:18:29 +00:00
Wayne Davison
0c25dedf31
Simplified the function-finding regex, and made it more versatile
...
(so we don't need to keep adding variable-type strings).
2006-10-13 06:50:56 +00:00
Wayne Davison
6105464b79
Indented the function comments with "* ".
2006-10-13 06:49:44 +00:00
Wayne Davison
4d51f0db79
Don't use a bool directly in an int comparison.
2006-10-13 06:27:59 +00:00
Wayne Davison
ff530f04a0
Function fcntl() only takes 2 args when using F_GETFL.
2006-10-13 06:26:02 +00:00
Wayne Davison
e8b21fe406
Cast pat_len to an int when using it as a field width.
2006-10-13 06:24:24 +00:00
Wayne Davison
71cb9df386
Some OSes can't chmod -t for a file, so I changed the logic of our
...
to to substitute a chmod that will work everywhere.
2006-10-13 04:59:53 +00:00
Wayne Davison
f97c2d4a9b
- Clarified the "dont compress" option.
...
- Cleaned up some trailing whitespace.
2006-10-13 01:37:44 +00:00
Wayne Davison
b8a6dae038
Updated the man pages to work with version 2.x of yodl.
2006-10-13 01:24:57 +00:00
Wayne Davison
969f7ed5b7
Fixed an infinite loop in parse_rule() when a filter rule is too
...
longer for MAXPATHLEN. Also fixed a couple spots nearby that were
erroneously treating pointer "cp" as a '\0'-terminated string.
2006-10-13 01:22:48 +00:00
Wayne Davison
e825409a84
Preparing for release of 2.6.9pre1
v2.6.9pre1
2006-10-12 03:45:53 +00:00
Wayne Davison
b8d29fd8e6
Added a line for 2.6.9.
2006-10-12 03:44:44 +00:00
Wayne Davison
200f2d98db
Make sure we tweak the right RSYNC_VERSION line in configure.
2006-10-12 03:32:18 +00:00
Wayne Davison
1a7f3d99c5
Removed the changes in symlink handling in non-chroot daemon mode as
...
they were not yet safe (I'll consider similar changes for the next
release).
2006-10-12 03:01:18 +00:00
Wayne Davison
e80876700c
Got rid of changes that aren't going to make it into 2.6.9.
2006-10-12 03:01:12 +00:00
Wayne Davison
ec55b4f2fb
Changed the indent for one else ... if section.
2006-10-12 03:01:01 +00:00
Wayne Davison
798cde474f
Some minor improvements to parse_merge_name().
2006-10-12 02:14:47 +00:00
Wayne Davison
558d482c47
Renumbered tests after adding one in the middle.
2006-10-11 00:51:50 +00:00
Wayne Davison
418b6a2703
Handle the itemizing of of the "." dir when it is newly created.
2006-10-11 00:04:48 +00:00
Wayne Davison
1ef5bf3cfd
If new_root_dir is set, itemize the output of the "." dir as a
...
directory-creation event.
2006-10-11 00:04:44 +00:00
Wayne Davison
2a94207ad6
Added a new variable, new_root_dir, that is set if we created the
...
destination directory.
2006-10-11 00:04:41 +00:00
Wayne Davison
ddcba3f075
Changed the fix_basis_dirs() function to only remove a single ../
...
prefix from each --*-dest option's path.
2006-10-10 23:44:59 +00:00
Wayne Davison
db3ae95cac
Made some of the --link-dest tests use a relative destination
...
directory, and made one of those do a --dry-run test before
the regular test.
2006-10-09 03:06:50 +00:00
Wayne Davison
1a05de2bff
- If a finished link came from a link-dest dir and --dry-run is in
...
effect, we now stat the link-dest file instead of the non-existent
destination file.
- Use int32 for the index variables.
2006-10-09 03:05:19 +00:00
Wayne Davison
d9163a4cf5
If the combination of --dry-run, --link-dest, and -H finds a matching
...
file in on of the extra basis dirs, make a note of which basis dir
we would have used in the hard-link with the destination file.
2006-10-09 02:59:23 +00:00
Wayne Davison
44885a398f
Added link_dest_used unsigned short to struct hlink and made the
...
other values explicitly 32-bit so that the total size can't be
larger than the other struct we're in a union with.
2006-10-09 02:57:04 +00:00
Wayne Davison
dfe1ed5e97
Another tweak to the --chmod summary.
2006-10-09 00:55:04 +00:00
Wayne Davison
242f6052c2
Mention the latest bug fix.
2006-10-08 22:17:39 +00:00
Wayne Davison
519d55a950
Make the daemon's "incoming chmod" tweaks happen last, as documented.
2006-10-08 22:02:13 +00:00
Wayne Davison
b6008dc645
Clarify the short description of --chmod.
2006-10-08 22:00:31 +00:00
Wayne Davison
6f3684ffb5
Call push_dir() with its new boolean arg.
2006-10-08 20:57:01 +00:00
Wayne Davison
615a5415c9
- Call push_dir() with its new boolean arg, including the spot in
...
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.
2006-10-08 20:56:56 +00:00
Wayne Davison
ba081be327
Made the push_dir() function take an option to skip the actual chdir()
...
call. Used when the dest-dir doesn't exist and --dry-run was specified.
2006-10-08 20:56:52 +00:00
Wayne Davison
3e88414e4e
Moved some of the variable setup from "make check" into the
...
runtest.sh script.
2006-10-07 14:54:56 +00:00
Wayne Davison
0888952768
Moved some variable setup here from the Makefile and made it
...
possible to specify extra rsync options for the test.
2006-10-07 14:54:14 +00:00
Wayne Davison
5dcd9a2b70
Changed the -o to -a in the "if".
2006-10-07 14:39:01 +00:00
Wayne Davison
6ce9432d75
A bug-fix for die_on_unsafe_path() when the path doesn't exist.
2006-10-07 14:19:00 +00:00
Wayne Davison
6c8507724b
Added exception-checking to a couple select() calls, as suggested
...
by Hugh Daschbach.
2006-09-30 22:11:20 +00:00