Wayne Davison
58743a87b8
Improved to add the default gid if it is missing from the list.
2004-01-22 09:13:36 +00:00
Wayne Davison
54bf456e85
Removed an obsolete comment.
2004-01-22 09:05:09 +00:00
Wayne Davison
a24639bb36
Tweaked an argv-type variable so that it's a little clearer what
...
the code is doing. Also added a comment.
2004-01-22 04:40:33 +00:00
Wayne Davison
3fef53645d
Use the new f_name_to() calling syntax.
2004-01-22 04:38:18 +00:00
Wayne Davison
882e689312
- Ensure in make_file() that we can't make a name that overflows
...
our buffers (note that receive_file_entry() already does this).
- Changed f_name_to() to not do any length checking since it is
now redundant.
2004-01-22 04:38:17 +00:00
Wayne Davison
b0a93231cf
Added more missing news.
2004-01-22 02:02:00 +00:00
Wayne Davison
0c819b76d6
New news.
2004-01-22 01:23:43 +00:00
Wayne Davison
ce58b1b479
Size-check the --temp-dir string so we don't have to worry about it
...
overflowing elsewhere in the code.
2004-01-22 01:20:24 +00:00
Wayne Davison
a16d8f2b25
Improved a couple comments.
2004-01-21 02:45:10 +00:00
Wayne Davison
59187666b9
Use new push_dir() syntax.
2004-01-20 17:46:31 +00:00
Wayne Davison
808c57c343
- Use the new push_dir() and pop_dir() calling syntax.
...
- The "olddir" handling changed to accommodate the above, and to
avoid using malloc()/free().
2004-01-20 17:46:30 +00:00
Wayne Davison
4af8fe4e78
- Changed push_dir() to not take a "save" arg and to return 1 or 0
...
for success or failure instead of a string pointer. The function
also ensures that we don't overflow the curr_dir[] buffer.
- Changed pop_dir() to not free() anything and to return 1 or 0
for success or failure.
2004-01-20 17:46:29 +00:00
Wayne Davison
4034cb3f71
Use new stringjoin() function.
2004-01-20 05:35:57 +00:00
Wayne Davison
6fc048f438
Find last '@' in the user@site string, just in case the username has
...
a '@' in it.
2004-01-20 05:27:09 +00:00
Wayne Davison
5d2a707139
Use new stringjoin() and pathjoin() functions.
2004-01-20 05:24:07 +00:00
Wayne Davison
81d2b0ef9d
Use new pathjoin() function.
2004-01-20 05:15:14 +00:00
Wayne Davison
248ed45fc6
Use new pathjoin() function.
2004-01-20 05:09:36 +00:00
Wayne Davison
893c4cc056
Use new stringjoin() function.
2004-01-20 04:56:20 +00:00
Wayne Davison
a7725e6df9
Use new pathjoin() function.
2004-01-20 04:53:59 +00:00
Wayne Davison
368ad70e05
Added stringjoin() and pathjoin().
2004-01-20 04:43:49 +00:00
J.W. Schultz
b7cee9498b
Eliminate unneeded strlen after strlcpy.
2004-01-20 03:37:04 +00:00
Wayne Davison
72d45525d2
Make sure that strlcpy() returns the right value when the bufsize is 0.
2004-01-20 00:59:26 +00:00
Wayne Davison
1fb8ec4b0d
Fixed a bug in strlcat() where it would not properly detect a no-change
...
condition if called with an initial string longer than the specified
size limit (due to an unsigned var's inability to go negative).
2004-01-20 00:29:49 +00:00
Wayne Davison
beb9368481
Make sure that the batch-prefix string isn't overly long (avoiding
...
a potential problem in the batch-filename code).
2004-01-19 23:33:02 +00:00
Wayne Davison
981555bddb
Actually, let's avoid snprintf() where possible.
2004-01-19 23:28:57 +00:00
Wayne Davison
9c7527085c
Use snprintf() instead of strlcpy()+strlcat().
2004-01-18 21:22:49 +00:00
Wayne Davison
eddd5d129e
A few minor string optimizations and a new complaint if we try to
...
send a truncated filename.
2004-01-17 19:45:26 +00:00
Wayne Davison
26f76b7912
Got rid of an extra call to io_start_buffering_out().
2004-01-17 05:04:04 +00:00
Wayne Davison
32eda0961e
Unified the externs.
2004-01-17 04:58:24 +00:00
Wayne Davison
66964002df
A fix for --cvs-exclude.
2004-01-17 01:23:41 +00:00
Wayne Davison
57469f6c31
Items read from a per-directory .cvsignore file should be added to the
...
local_exclude_list, not the exclude_list.
2004-01-17 01:16:49 +00:00
Wayne Davison
13c7bcbb2b
Output an error before we die if we get a wacko message from the receiver.
2004-01-16 16:31:47 +00:00
Wayne Davison
d48c806560
Clarified the --delete-after descriptions.
2004-01-15 17:45:53 +00:00
Wayne Davison
ad1a09a509
Clarified the --delete-after help text.
2004-01-15 17:43:34 +00:00
Wayne Davison
d6631cf3a5
If we're a daemon talking with a pre-28 protocol, use FERROR for a
...
vanished-file message (not FINFO).
2004-01-15 08:56:33 +00:00
Wayne Davison
5a8543b8b8
In two places: needed to use protocol_version, not PROTOCOL_VERSION.
2004-01-15 08:39:25 +00:00
Wayne Davison
19119cbd35
Changed version to "2.6.1cvs".
2004-01-15 08:16:40 +00:00
Wayne Davison
442743b83c
Improved receiver/generator communications.
2004-01-15 07:51:37 +00:00
Wayne Davison
419896af47
- Define FULL_FLUSH and NORMAL_FLUSH.
...
- Got rid of FNONE from logcode enum.
- Created msgcode enum with MSG_DATA, MSG_REDO, MSG_DONE, etc.
2004-01-15 07:42:27 +00:00
Wayne Davison
0569a1339d
- Got rid of the f_gen pipe.
...
- Use new send_msg() call with MSG_DONE or MSG_REDO.
2004-01-15 07:42:25 +00:00
Wayne Davison
f1e3656ee2
- Call io_flush() with its new FULL_FLUSH/NORMAL_FLUSH arg.
...
- Got rid of the recv_pipe between the receiver and the generator.
- Use new send_msg(MSG_DONE,...) call to signal the generator
when the receiver is done.
- Use the new get_redo_num() call in the generator to read the
final -1 from the receiver.
2004-01-15 07:42:21 +00:00
Wayne Davison
a644fc3cc4
- Moved err_list* stuff to io.c and renamed them to msg_list*.
...
- Call the new send_msg() function to send a remote log message.
2004-01-15 07:42:19 +00:00
Wayne Davison
d17e1dd2da
- Moved the err_list* stuff here from log.c and renamed them msg_list*.
...
- Renamed log_error_fd to msg_fd_out, and io_error_fd to msg_fd_in.
- Added a redo_list* to keep track of any redo items that come over
the message channel from the receiver to the generator.
- The io_flush() and msg_list_push() functions now take an arg:
NORMAL_FLUSH or FULL_FLUSH. The latter ensures that we don't lose
any log messages that haven't gotten written from the msg_list.
- Added a send_msg() function that log.c calls to send any remote
log messages. It is also called to send the new MSG_REDO and
MSG_DONE messages.
2004-01-15 07:42:17 +00:00
Wayne Davison
b9b15fb165
We now call get_redo_num() instead of reading f_recv (which was removed).
2004-01-15 07:42:15 +00:00
Wayne Davison
ef732c3b54
Call io_flush() with its new FULL_FLUSH option.
2004-01-15 07:42:12 +00:00
Wayne Davison
baa4212ae1
If the do_lchown() fails and we weren't trying to change the user,
...
the error now says that chgrp failed, not chown.
2004-01-15 07:08:00 +00:00
Wayne Davison
0be976ec0a
Fixed a bug when a non-root user copies a GID=0 file with -g set
...
and no permissions to set group 0.
2004-01-15 07:06:45 +00:00
Wayne Davison
f7f10340d6
The HAS_INODE_DATA flag is no longer a part of the LIVE_FLAGS define.
2004-01-15 02:25:38 +00:00
Wayne Davison
68f9910d94
Explain the --progress output.
2004-01-13 18:50:40 +00:00
Wayne Davison
fb6e0ea120
Give the user an idea of how far along in the transfer we are
...
when using --progress.
2004-01-13 18:25:03 +00:00