Wayne Davison
25bd99451c
Make the GID_NONE define a little safer.
2004-07-07 08:25:13 +00:00
Wayne Davison
ed43d0a76d
Added some missing $(srcdir) references.
2004-07-04 08:56:31 +00:00
Wayne Davison
066a844c4e
Changed a "for" loop into a "do ... while" loop.
2004-07-04 08:07:23 +00:00
Wayne Davison
5e252dea4b
Optimized away a loop in hash_search().
2004-07-02 23:35:30 +00:00
Wayne Davison
d2a918b454
Some formatting tweaks.
2004-07-02 18:23:57 +00:00
Wayne Davison
da38e779ea
Moved the verbose message about renaming the finished file down into
...
finish_transfer() so that it only gets output when we're actually going
to rename the file.
2004-07-02 18:13:53 +00:00
Wayne Davison
8186ae6bc0
Tweaked some formatting.
2004-07-02 18:12:24 +00:00
Wayne Davison
e1f67417d7
Some simple whitespace tweaks.
2004-06-30 07:27:30 +00:00
Wayne Davison
fd322eef82
Made recv_generator static.
2004-06-29 19:19:00 +00:00
Wayne Davison
d3a4375f78
Optimized away a call to cmp_modtime() for a compare-dest file.
2004-06-29 16:22:54 +00:00
Wayne Davison
78112d305b
Mention the extended argv-overflow checking.
2004-06-29 15:13:18 +00:00
Wayne Davison
f7c3ee9932
Tweaked an overly-long line.
2004-06-29 15:12:01 +00:00
Wayne Davison
e7a392c77c
A few more improvements to the anti-overflow args[] checking.
2004-06-28 17:45:40 +00:00
Wayne Davison
887e553f05
Make sure that do_cmd() doesn't overflow its arg-pointer array
...
(which was also made larger).
2004-06-28 17:25:14 +00:00
Wayne Davison
beb227ddf1
Got rid of a couple unneeded assignments.
2004-06-24 04:46:02 +00:00
Wayne Davison
84acca07ae
Restoring correct skip_file() return semantics.
2004-06-23 21:21:19 +00:00
Wayne Davison
cc1e997dcd
Thought skip_file() wasn't returning 1 for "skip" and 0 or "keep"
...
so I reversed the return.
2004-06-23 16:51:21 +00:00
Wayne Davison
a7026ba90a
Fixed a newly-introduced problem in read_timeout() where FD_ZERO(&w_fds)
...
wasn't always called before w_fds was used.
2004-06-23 01:13:09 +00:00
Wayne Davison
3a69fad0f6
Some trivial format tweaks.
2004-06-20 21:48:06 +00:00
Wayne Davison
40564811ee
Mentioned the latest socket change and fixed a few typos.
2004-06-20 20:37:06 +00:00
Wayne Davison
dcd08dc51c
Restored the code in the IPV6_V6ONLY section that checks the
...
return value from setsockopt() with one improvement: if the
user has used --ipv6 (-6) we don't discard the IPv6 socket.
This should help people using older Linux kernels that don't
implement IPv6 support quite right.
2004-06-20 19:51:19 +00:00
Wayne Davison
fdf57ede8c
Tweaked a comment.
2004-06-20 19:47:05 +00:00
Wayne Davison
bd717af8ab
Must not call check_timeout() before checking the errno value.
2004-06-19 07:09:57 +00:00
Wayne Davison
c54f5170bf
Added some missing changes.
2004-06-19 06:55:58 +00:00
Wayne Davison
eae4e1f9f0
Some minor improved sentences.
2004-06-19 05:52:45 +00:00
Wayne Davison
9c513d678d
Tweaked some comments.
2004-06-18 16:55:12 +00:00
Wayne Davison
d16c245fc4
Some helpful comments from Chris Shoemaker.
2004-06-18 16:50:20 +00:00
Wayne Davison
ec8290c897
Fixed some typos in a comment, moved an extern, and made a few
...
minor format tweaks.
2004-06-18 16:30:24 +00:00
Wayne Davison
b293a7f62c
Improved a comment.
2004-06-18 16:29:21 +00:00
Wayne Davison
d67c8bdfc3
Moved the externs to the top and made a few trivial format tweaks.
2004-06-18 16:22:14 +00:00
Wayne Davison
e2ccd3578c
Got rid of some trailing whitespace.
2004-06-18 16:00:33 +00:00
Wayne Davison
4e834af140
If --partial was specified, make sure that make_backup is turned
...
off during the second (retry) phase of the transfer to avoid
making a second backup of a file (which would lose the original).
2004-06-14 15:09:36 +00:00
Wayne Davison
7e5614383d
Added a short msleep() after option_error() before we exit. This
...
ensures that the remote client has time to read our error message
while it is trying to write data to us before it gets a socket
error.
2004-06-13 14:18:48 +00:00
Wayne Davison
eb84a83b47
Changed the new code in delete_one() so that some compilers
...
don't complain about returning a value from a void function.
2004-06-12 21:30:07 +00:00
Wayne Davison
2c2898a388
Mention the bugfix in option-parsing error-reporting from a daemon.
2004-06-12 18:27:04 +00:00
Wayne Davison
1732b6c037
- Changed some FERROR log calls to FLOG.
...
- Improved the option-error-reporting to actually get the error back
to the user (by getting I/O multiplexing started).
2004-06-12 18:22:39 +00:00
Wayne Davison
314f459161
- Made readlink_stat() and link_stat() optionally follow a symlink
...
to a dir. This fixes deletions inside "kept" symlinked dirs.
- Call link_stat() with its new arg (for --keep-dirlinks support).
2004-06-11 07:40:57 +00:00
Wayne Davison
83926d3cae
Make sure that keep_dirlinks is turned off for the sender.
2004-06-11 07:40:54 +00:00
Wayne Davison
6218c7bf42
- Moved --keep-dirlinks code over to flist.c.
...
- Call link_stat() with its new arg (for --keep-dirlinks support).
2004-06-11 07:40:51 +00:00
Wayne Davison
566fce3237
Made delete_one() handle a failed rmdir on a symlink when
...
--keep-dirlinks was specified.
2004-06-11 07:40:48 +00:00
Wayne Davison
373ef16010
Call link_stat() with its new arg (for --keep-dirlinks support).
2004-06-11 07:40:45 +00:00
Wayne Davison
ea76e76104
In set_filesystem(), call do_stat(), not link_stat() to ensure
...
that we get the directory behind it all.
2004-06-11 05:02:59 +00:00
Wayne Davison
9fd62d1588
The mkdir code should be using do_stat(), not do_lstat() to copy
...
each existing dir's mode & owner info.
2004-06-10 16:43:52 +00:00
Wayne Davison
b7061c82b4
Allow the argv list the daemon uses for globbing its args to grow.
2004-06-09 21:51:07 +00:00
Wayne Davison
6fb812f747
Removed some excessive parens.
2004-06-09 21:43:28 +00:00
Wayne Davison
40e8d11e64
Mentioned a couple more bugfixes.
2004-06-09 21:42:33 +00:00
Wayne Davison
73042aae5b
Restore UNUSED() macro (the prior problems that prompted me to remove
...
it appear to have been a build-farm bug).
2004-06-09 21:41:21 +00:00
Wayne Davison
e5ce3bcf2c
Needed to enclose the new symlink-warning code in an
...
"#if SUPPORT_LINKS" conditional.
2004-06-09 19:23:56 +00:00
Wayne Davison
c399d22a19
Renamed read_unbuffered() to readfd_unbuffered() so that it matches
...
writefd_unbuffered().
2004-06-09 03:07:50 +00:00
Wayne Davison
1ea087a794
- Made the maximum-fd computation prior to a select() use the same idiom
...
in both the read and write code (also use a better variable name).
- Made the bytes-available code at the end of the select() loop use the
same flow of control in the read and the write code.
2004-06-08 22:18:04 +00:00