Commit Graph

  • 4a7319be12 Neatened up some whitespace issues and made multi-line comments more consistent. Wayne Davison 2003-12-15 01:45:01 +00:00
  • 55d5937dd6 Simplified the setting of the reading_remotely variable in function read_filesfrom_line() now that remote_filesfrom_file is set more often. Wayne Davison 2003-12-15 00:54:44 +00:00
  • 63596e1c4a If we're the server and --files-from is "-", set remote_filesfrom_file to "-" as well (since the data is coming over the socket from the remote side). Wayne Davison 2003-12-15 00:53:07 +00:00
  • 603e6b05c7 Neatened up the indentation. Wayne Davison 2003-12-12 17:13:22 +00:00
  • dfad66a838 Sanity check s2length on recept. J.W. Schultz 2003-12-06 21:35:34 +00:00
  • 58cadc8608 Merged in the security fixes from 2.5.7. Wayne Davison 2003-12-06 21:07:27 +00:00
  • 594fe5e1cc preparing for release of 2.5.7 v2.5.7 rsync-bugs 2003-12-04 04:27:22 +00:00
  • 9fb21d2882 Buffer management fix. Martin Pool 2003-12-04 04:23:29 +00:00
  • b11b50bcd0 Added reminder to update rsync.yo manpage when adding to exit codes. J.W. Schultz 2003-10-25 20:02:45 +00:00
  • a73de5f3ba Added exit code 0. Wayne Davison 2003-10-25 17:53:57 +00:00
  • 84c3645cea Updated exit codes as Jon Jensen and J.W. suggested. Wayne Davison 2003-10-25 16:21:41 +00:00
  • 2a88a8cd30 Fixed an operator-precedence problem in the batch-mode code. Wayne Davison 2003-10-13 23:46:08 +00:00
  • 8a97fc2e1b Tried to improve the documentation surrounding a trailing-slash source-dir transfer. Wayne Davison 2003-10-07 20:33:08 +00:00
  • 7a2fd68b96 Tweaked the just-added error message to use my new full_fname() function. Also removed some trailing whitespace from lines. Wayne Davison 2003-09-16 05:33:09 +00:00
  • 6a7cc46cb2 Detect and report when open or opendir succeed but read and readdir fail caused by network filesystems issues and truncated files. Thanks to David Norwood and Michael Brown J.W. Schultz 2003-09-16 02:49:59 +00:00
  • aa6dc37ccb Mention my recent changes. Wayne Davison 2003-09-11 05:00:52 +00:00
  • ea42541fe0 Improved file-related error messages by using the new full_fname() function. Wayne Davison 2003-09-11 04:53:05 +00:00
  • b7b2741f3a Tweaked an error message. Wayne Davison 2003-09-11 04:53:01 +00:00
  • eb61be192d Added a new function, full_fname(), that makes a filename more complete for error messages. If the path is in a module, we ensure that the "path" setting (from the config file) is not revealed, while still reminding the user that the path is relative to the module's root. Wayne Davison 2003-09-11 04:48:15 +00:00
  • 9b9114e8cd Include a few new stubs to handle the new full_fname() function. Wayne Davison 2003-09-11 04:48:13 +00:00
  • 857e38bb45 Got rid of some "/* dw */" comments and fixed some line's indentation. Wayne Davison 2003-09-11 04:48:09 +00:00
  • 4ea812445d Got rid of some "/* dw */" comments. Wayne Davison 2003-09-11 04:48:07 +00:00
  • e80a765412 If lp_path() returns "/", set exclude_path_prefix to "" (because the exclude code doesn't want any trailing slashes). Wayne Davison 2003-09-11 04:00:19 +00:00
  • 15089022d4 Make sure that the new slash-stripping P_PATH code doesn't turn a "/" into an empty string. Wayne Davison 2003-09-11 03:49:53 +00:00
  • f69204adad Changed main() definition to avoid an extra prototype being put into the proto.h file. Wayne Davison 2003-09-10 08:27:34 +00:00
  • 459a83c9cc Make sure that the "path" value has any trailing slashes removed. Wayne Davison 2003-09-10 08:08:14 +00:00
  • 6464bdbe13 Got rid of trailing whitespace. Wayne Davison 2003-09-10 07:31:58 +00:00
  • 4f3e9a0fba Added the new --protocol option. Wayne Davison 2003-09-09 15:58:56 +00:00
  • 8a9709dee5 Changed most instances of "remote_version" to "protocol_version", and others to "remote_protocol". Downgrade the protocol_version if the remote_protocol" is lower. Output the protocol values if the verbose level is large enough. Exit if the user tried to force a protocol value that is not within the range that we can handle. Fixed the output of the "very old version of rsync" message to output the right Client/Server string. Wayne Davison 2003-09-09 15:58:53 +00:00
  • daa598df11 Changed most instances of "remote_version" to "protocol_version", and others to "remote_protocol". Downgrade the protocol_version if the remote_protocol is lower. Wayne Davison 2003-09-09 15:58:50 +00:00
  • d04e9c51b4 Changed "remote_version" to "protocol_version". Wayne Davison 2003-09-09 15:58:48 +00:00
  • d89a3a313a *** empty log message *** J.W. Schultz 2003-09-04 05:54:20 +00:00
  • 350e4e4dec Allow non-dir special files to be replaced with regular files and fix error that caused directories in link-dest or compare-dest to prevent the creation of files of same path. J.W. Schultz 2003-09-04 05:49:50 +00:00
  • c95dcb3935 Cast various s->blength references inside of MIN() macros to OFF_T so that compilers don't warn about signed/unsigned comparisons. Wayne Davison 2003-08-22 21:26:08 +00:00
  • 1e4f48d6c4 Whitespace tweaks. Wayne Davison 2003-08-22 05:51:42 +00:00
  • fb55e28d83 Fixed the multiplying of blength*blength so that it can't overflow before it gets cast to a uint64. Wayne Davison 2003-08-22 05:42:13 +00:00
  • 067669dac7 Made the UNUSED(parameter) macro calls read a little nicer. Wayne Davison 2003-08-22 05:04:13 +00:00
  • 24c906d3f7 Mark unused vars. Wayne Davison 2003-08-22 00:31:46 +00:00
  • 14820f635d Make extra backup dirs mode 0700, not 0755. Wayne Davison 2003-08-22 00:30:46 +00:00
  • 59192f5650 Got rid of a duplicate include for malloc.h and improved the "do we need malloc.h" logic a bit more. (Trying to prevent #warning and #error problems on *BSD systems.) Wayne Davison 2003-08-21 23:54:20 +00:00
  • 365346ca30 Got rid of signed/unsigned-comparison warning if st_rdev is signed. Wayne Davison 2003-08-21 23:46:10 +00:00
  • d01350a881 Got rid of signed/unsigned-comparison warning if st_dev is signed. Wayne Davison 2003-08-21 23:45:49 +00:00
  • 38b02c13d0 Let's try only including malloc.h if stdlib.h isn't around (and it exists). Wayne Davison 2003-08-21 23:32:35 +00:00
  • b017ec4e13 Silenced a couple compiler warnings. Wayne Davison 2003-08-21 23:28:24 +00:00
  • 2c873122b3 Mention some more bug fixes. Wayne Davison 2003-08-20 23:36:45 +00:00
  • 6969ebcfcf Call setgroups(1, &gid) after setting the gid (rather than calling setgroups(0, NULL) before). Wayne Davison 2003-08-20 23:25:52 +00:00
  • 1dbb94cadf Use the AVAIL_OUT_SIZE() macro in a few more places to ensure that the avail_out buffer is big enough to uncompress all the compressed data. Wayne Davison 2003-08-20 10:37:53 +00:00
  • 8a78bb963d Fixed a couple option-name typos (that had '_' instead of '-'). Wayne Davison 2003-08-18 23:52:43 +00:00
  • 6931c13800 - Made special exclusion-handling of '.' work in -R mode (so that we can't accidentally lose the '.' dir and not transfer anything at all). - Add a trailing '.' onto all '/'-trailing names, even '/' (fixes skipped deletions in -R mode from '/'). - Fixed loss of FLAG_DELETE on user-specified dir when unduplicating '.' (could happen on "./." or similar). Wayne Davison 2003-08-17 21:29:11 +00:00
  • e6e3f12ffc Whitespace and indentation cleanup. There is a lot of deep indentation mostly due to read_batch but at least it is now consistant. J.W. Schultz 2003-08-15 00:57:27 +00:00
  • e2559dbedc Make --progress imply --verbose without incrementing verbosity. J.W. Schultz 2003-08-06 06:45:14 +00:00
  • 1f3d6cdd86 Got rid of unused OPT_* enums. Wayne Davison 2003-08-05 17:56:54 +00:00
  • 4a7ee79d4d Improved the mkstemp error message. Wayne Davison 2003-08-04 21:03:07 +00:00
  • 0c2ef5f42d Make sure that the error message for mkstemp() includes the full path of where we're trying to create the temp file. Wayne Davison 2003-08-04 21:00:57 +00:00
  • ca20c7fd62 Instead of ignoring SIG_CHLD, reap zombies in the signal handler. Wayne Davison 2003-08-04 18:27:27 +00:00
  • 191e40da17 Change the way we pass the --suffix option to the remote process so that a string that starts with ~ doesn't get modified. Wayne Davison 2003-08-01 20:19:51 +00:00
  • 80ddadb7e8 Complain if the --suffix value contains slashes (which is all too easy to accidentally have happen if you try to specify "~" with --backup-dir). Wayne Davison 2003-08-01 19:40:31 +00:00
  • 31f3b68a97 We should bump the deletion_count for backed-up deleted files too. Wayne Davison 2003-08-01 08:20:53 +00:00
  • d594399c6a Mention the --backup fix. Wayne Davison 2003-08-01 08:01:15 +00:00
  • d74a2e3ed5 Properly handle the backup_suffix/backup_dir settings when deleting files. Also optimized the code that calls delete_one(). Don't neglect to mention a file being deleted with --backup set. Wayne Davison 2003-08-01 07:58:47 +00:00
  • d175d7e13e Got rid of suffix_specified and instead set backup_suffix to the correct default value for the current backup_dir mode. Added two new values: backup_suffix_len and backup_dir_len. Improved some error-message code to not output duplicate errors. Wayne Davison 2003-08-01 07:58:44 +00:00
  • daa8ce838b Use the new backup_suffix_len and backup_dir_len variables. Got rid of the suffix_specified kludge. Wayne Davison 2003-08-01 07:58:41 +00:00
  • b19fd07c02 Clarify some --backup/--backup-dir/--suffix issues. Wayne Davison 2003-08-01 00:50:23 +00:00
  • 47d6a60c2f Whitespace and indentation fixes. J.W. Schultz 2003-07-31 09:32:15 +00:00
  • 980821ebab No longer needed (replaced by wildmatch). Wayne Davison 2003-07-30 06:13:47 +00:00
  • 592f4696dc Updated the exclude/include section to mention the "**" vs "*" change. Wayne Davison 2003-07-30 06:12:41 +00:00
  • 8a7846f97e Changed the "**" description to reflect its no-longer-buggy behavior. Wayne Davison 2003-07-30 06:12:33 +00:00
  • 87f18b6289 Include "lib/wildmatch.h", not "lib/fnmatch.h" or <fnmatch.h>. Wayne Davison 2003-07-30 06:12:31 +00:00
  • 28063ba5b2 Got rid of test for fnmatch. Wayne Davison 2003-07-30 06:12:29 +00:00
  • fe332038c6 Call wildmatch(), not fnmatch(). Wayne Davison 2003-07-30 06:12:27 +00:00
  • 3c0b1ebf78 Changed lib/fnmatch.o to lib/wildmatch.o. Wayne Davison 2003-07-30 06:12:25 +00:00
  • f2fe4903c9 Made the list of exclude/include changes more prominent and clear. Wayne Davison 2003-07-26 18:13:38 +00:00
  • 3151cbae89 Some superficial tweaks I made while reading through the io.c code. Wayne Davison 2003-07-26 17:55:07 +00:00
  • 3c30b99059 Added one more test. Wayne Davison 2003-07-14 15:46:34 +00:00
  • a7735ba085 Updated for latest character-class change. Wayne Davison 2003-07-14 15:13:31 +00:00
  • d811b68901 Make sure that no character class can match a '/'. Wayne Davison 2003-07-14 15:12:59 +00:00
  • 1c8162a921 Optimized show_progress() to reduce the calls to gettimeofday() when am_server is set. No need to check do_progress here anymore, since we aren't called if do_progress isn't set. Wayne Davison 2003-07-08 16:54:53 +00:00
  • 16417f8b9d Only call show_progress() and end_progress() if do_progress is set. Wayne Davison 2003-07-08 16:49:10 +00:00
  • b49d381d05 Changed "./0123456789" to just ".0123456789". Wayne Davison 2003-07-07 19:37:58 +00:00
  • 7da9a16d10 I decided to go with the slightly simpler logic Thorild Selen suggested in a subsequent email. Wayne Davison 2003-07-07 18:37:38 +00:00
  • 32f60a6e7b Improved deficiencies in the hostname-vs-address check (reintroduced in the last revision) based on the suggestions of Thorild Selen. Wayne Davison 2003-07-07 18:25:01 +00:00
  • b7db090661 Commented-out a test that wasn't consistent across all platforms. Wayne Davison 2003-07-07 07:28:02 +00:00
  • 136c5c5ec3 Silence some compiler warnings on HP-UX. Wayne Davison 2003-07-07 07:22:08 +00:00
  • 85b80fbc73 A few more tests. Wayne Davison 2003-07-07 07:10:40 +00:00
  • 16859cdbdc Improved the summary output to use correct English for all counts. Wayne Davison 2003-07-07 07:08:24 +00:00
  • fc96552d26 Don't treat "[:" as the start of a named set if there's no ":]". Wayne Davison 2003-07-07 07:07:16 +00:00
  • 15bb997d0a Added a few more items to the tests. Wayne Davison 2003-07-06 18:54:08 +00:00
  • b6b42c892c Improve the format of the --iterations output. Wayne Davison 2003-07-06 18:29:24 +00:00
  • 5bb920003e - Return ABORT_ALL for a syntax error in the pattern (not FALSE). - Abort if the [:class:] name is not known. Wayne Davison 2003-07-06 18:26:34 +00:00
  • 37ff0e344d Added match for new "no errors" line from wildtest. Wayne Davison 2003-07-06 17:41:37 +00:00
  • 97d53f8c75 Switch to using an input file so that backslashes are specified normally, and so that test additions and changes are easier. Wayne Davison 2003-07-06 17:41:01 +00:00
  • f2ac84c36d Added some portability code for the ctype functions. Wayne Davison 2003-07-06 16:29:32 +00:00
  • c21eeef5bc Updated for latest wildmatch.c changes. Wayne Davison 2003-07-06 04:34:19 +00:00
  • e11c425119 - Added [:class:] handling to the character-class code. - Use explicit unsigned characters for proper set checks. - Made the character-class code honor backslash escapes. - Accept '^' as a class-negation character in addition to '!'. Wayne Davison 2003-07-06 04:33:54 +00:00
  • 84229c7ac9 We now figure out if diff accepts -u and we'll use it instead of -c, if possible. Wayne Davison 2003-07-05 22:57:08 +00:00
  • c9a59880f0 Simplified the character-class code a bit. Wayne Davison 2003-07-05 22:40:27 +00:00
  • 9a17dddbc5 Fixed the output of popt errors and changed our one option to be --iterations (-i). Wayne Davison 2003-07-05 19:21:41 +00:00
  • 277d99e8c9 A wildtest change to handle someone using the included popt lib. Wayne Davison 2003-07-05 19:14:10 +00:00
  • 2a1874cc82 Added dependencies for wildtest.o. Wayne Davison 2003-07-05 19:06:49 +00:00
  • d5c973ccb7 Changed some names since "depth" wasn't really the right term. Wayne Davison 2003-07-05 19:03:42 +00:00