Commit Graph

  • 1183260426 Added missing initialization of new solo_file variable. Wayne Davison 2006-12-07 06:22:22 +00:00
  • 07613def0a Some minor format tweaks. Wayne Davison 2006-12-07 03:31:44 +00:00
  • c2a608d9f1 - Use renamed hard-link defines: F_HL_IDEV() and F_HL_LIST(). Wayne Davison 2006-12-07 03:31:41 +00:00
  • 49b86442ff - Set "solo_file" bool and use that for improved clarity. - Use the new device defines: F_RDEV_P(), DEV_MAJOR(), and DEV_MINOR(). Wayne Davison 2006-12-07 03:31:38 +00:00
  • 4785cd43d1 - Use the new device defines: F_RDEV_P(), DEV_MAJOR(), and DEV_MINOR(). - Use renamed F_HL_IDEV() define. Wayne Davison 2006-12-07 03:31:34 +00:00
  • e238c9977d Use the new device defines: F_RDEV_P(), DEV_MAJOR(), and DEV_MINOR(). Wayne Davison 2006-12-07 03:31:31 +00:00
  • b37b7c9949 - Added a signed number to the flist_extras union. - Renamed F_IDEV() to F_HL_IDEV() and F_HLIST() to F_HL_LIST(). - Changed device defines to be: F_RDEV_P(), DEV_MAJOR(), and DEV_MINOR(). Wayne Davison 2006-12-07 03:31:28 +00:00
  • f7d7fb381d Improved the format of the debug output for mknod(). Wayne Davison 2006-12-07 02:37:42 +00:00
  • 3481bdf493 Mention waitpid() fix (which helps pre-xfer exec). Wayne Davison 2006-12-06 17:27:47 +00:00
  • d365e22967 The wait_process() call now handles EINTR. Wayne Davison 2006-12-06 17:21:59 +00:00
  • d02363609a If the pre-xfer exec failed with -1, output the strerror() from the waitpid() call. Wayne Davison 2006-12-06 16:56:19 +00:00
  • 1e1ca25343 #ifdef calls to hard-link functions. Wayne Davison 2006-12-06 01:32:17 +00:00
  • a2ebbffca7 - Make some char* pointers const. - Tweaked a couple variable names. - Changed the #ifdefs to not define any hard-link functions when hard-linking is disabled. Wayne Davison 2006-12-06 01:26:11 +00:00
  • 0395130c06 Changed i -> ndx in several variables. Wayne Davison 2006-12-06 00:55:33 +00:00
  • b8c167e804 F_SUM() needed to use HLINK_BUMP(). Wayne Davison 2006-12-06 00:52:34 +00:00
  • 17026f2741 Handle the FLAG_LENGTH64 flag in unmake_file(). Wayne Davison 2006-12-05 17:45:29 +00:00
  • 112d728f48 Use the latest F_*() accessors. Wayne Davison 2006-12-05 15:59:58 +00:00
  • 96293cf991 Saved 9 more bytes per file in a typical transfer by making the length 32 bits by default, by removing the basename pointer, and by making the mode value a unsigned short. Wayne Davison 2006-12-05 15:59:53 +00:00
  • f0fbf1d670 Changed flist_extra_ndx into flist_extra_cnt. Wayne Davison 2006-12-05 15:59:49 +00:00
  • 7a821d518b Tweaked some externs. Wayne Davison 2006-12-05 15:59:46 +00:00
  • 663b2857eb Use new send_msg_int() function. Wayne Davison 2006-12-04 02:07:37 +00:00
  • 155d9206a4 Added send_msg_int() function. Wayne Davison 2006-12-04 02:07:30 +00:00
  • 6b2a3d5de6 Moved an extern. Wayne Davison 2006-12-03 07:58:12 +00:00
  • 82ad07c418 - Typical tranfers now save 12-20 bytes per file because several vars were moved out of file_struct into an optional member-var setup. - Renamed and reorganized the FLAG_* defines. - Use NDX_DONE instead of a literal -1 when sending/checking the end-of-phase index value. Wayne Davison 2006-12-03 06:44:16 +00:00
  • d144e43bb3 Restored write_ndx_and_attrs() and made it public. Wayne Davison 2006-12-02 16:17:11 +00:00
  • d2aee174e6 Moved write_ndx_and_attrs() to sender.c and made it public. Wayne Davison 2006-12-02 16:16:54 +00:00
  • 20f0d0f9b9 Moved write_ndx_and_attrs() too. Wayne Davison 2006-12-02 16:13:02 +00:00
  • b675ba6f79 Added a couple externs. Wayne Davison 2006-12-02 16:11:33 +00:00
  • d1c178dd53 Moved read_item_attrs() from sender.c to rsync.c since the function is used by both the sender and the receiver. Wayne Davison 2006-12-02 16:08:59 +00:00
  • d619ff1376 Change the format/order of the capabilities --version outputs. Wayne Davison 2006-12-01 18:29:18 +00:00
  • db0f7613e1 Got rid of an incorrect comment. Wayne Davison 2006-11-28 19:34:01 +00:00
  • 45d8bfe09e Added some more "const" prefixes to some "char *" vars. Wayne Davison 2006-11-28 19:31:41 +00:00
  • d521e1c2a1 - Use write_shortint() to send the 2 bytes in an extended flag. - Improved a comment. Wayne Davison 2006-11-24 20:21:13 +00:00
  • 4ea4acf17b - Added checking of SIZEOF_INT64 to the new code in read_longint(). - Improved the SIZEOF_INT64 checking code in write_longint(). Wayne Davison 2006-11-24 18:35:00 +00:00
  • 3a993aa4bf - Changed {read,write}_shortint() to use unsigned short. - Added explicit char-casting to new long-int code. Wayne Davison 2006-11-24 17:28:57 +00:00
  • c7871d9892 Document the latest changes. Wayne Davison 2006-11-24 08:46:21 +00:00
  • 482f48cca9 - Fixed a bug when sending a negative 64-bit number (which may not be needed, but it at least works right now). - Improved the transmission of 32-bit negative numbers on systems where the 32-bit type is larger than 32 bits. - Changed the sending of 64-bit numbers for protocol 30: we send them in MSB-first order with the number of bytes used in the transmission encoded into the earliest bits. This lets us save transmitted bytes for both small and large numbers. The new method sends from 3 to 9 bytes, the old sent either 4 or 12. Wayne Davison 2006-11-24 08:38:44 +00:00
  • 36e6594dce Added some defines for sending variable-sized MSB-first numbers. Wayne Davison 2006-11-24 08:22:23 +00:00
  • e17883827b Silenced a compiler warning. Wayne Davison 2006-11-23 04:16:48 +00:00
  • 37a4386d2c Fix a unused-variable compiler warning. Wayne Davison 2006-11-23 03:28:58 +00:00
  • fd0a130c14 Document the new --delete-delay option. Wayne Davison 2006-11-22 20:52:51 +00:00
  • 5e77efaf41 - Implement new --delete-delay option. - Tweaked a variable name in delete_item(). Wayne Davison 2006-11-22 20:51:03 +00:00
  • b0cacef14b Added parsing for --delete-delay. Wayne Davison 2006-11-22 20:49:23 +00:00
  • b20830b338 Made get_tmpname() non-static. Wayne Davison 2006-11-22 20:48:04 +00:00
  • c63625d41a Switch over to testing --remove-source-files, not *-sent-*. Wayne Davison 2006-11-22 16:34:25 +00:00
  • 7de7b49f6c Don't define NORETURN for older gcc versions. Wayne Davison 2006-11-21 22:29:33 +00:00
  • d0d0e41fd2 Mention latest changes. Wayne Davison 2006-11-21 19:08:59 +00:00
  • 2a28dd32fd The exclude code wasn't sending the MATCHFLG_NEGATE (!) char to the other side. Wayne Davison 2006-11-21 17:46:54 +00:00
  • 65e83e097c Don't set an "rc" var that we aren't going to use. Wayne Davison 2006-11-21 08:37:28 +00:00
  • 4f37559232 Avoid a compiler warning about setting "len" without using it. Wayne Davison 2006-11-21 08:37:06 +00:00
  • 604dbf6d94 Make the file_list stats value an int64. Wayne Davison 2006-11-21 08:36:48 +00:00
  • 53593085cf - Use an explicit cast when a value gets stored in a smaller var. - The msgtype var should have been an enum. Wayne Davison 2006-11-21 08:36:31 +00:00
  • eb0144d79b Output the size of the file list using human_num(). Wayne Davison 2006-11-21 08:36:15 +00:00
  • 54b0dfa0f7 Explicitly cast the tag value in read_msg_fd() to an enum. Wayne Davison 2006-11-21 08:36:06 +00:00
  • 264042760b Use an explicit cast when a value gets stored in a smaller var. Wayne Davison 2006-11-21 08:35:58 +00:00
  • 1e999f9f1b The call to do_chmod() needed to be conditional. Wayne Davison 2006-11-21 08:35:22 +00:00
  • f9b66bc464 Fixed a problem with the new iconv const check. Wayne Davison 2006-11-20 19:12:35 +00:00
  • 60d465dbdd Use the new ICONV_CONST definition. Wayne Davison 2006-11-20 18:17:48 +00:00
  • 3ebdd3c7fc Added a test to figure out if iconv() takes a const char **. Wayne Davison 2006-11-20 18:17:17 +00:00
  • f0fa8c6df2 Moved the options_rejected label to avoid a compiler warning on some systems. Wayne Davison 2006-11-19 04:39:35 +00:00
  • 9d33e6f7cf Use rwrite() to output the err_msg string. Wayne Davison 2006-11-19 04:37:52 +00:00
  • 4a19c3b254 Added "const" to appropriate char pointers. Wayne Davison 2006-11-19 00:23:21 +00:00
  • 4743f0f41b Some bf(...) tweaks. Wayne Davison 2006-11-14 07:56:05 +00:00
  • 0abe148fd9 - Use double quotes for a quoted string. - Some bf(...) tweaks. Wayne Davison 2006-11-14 07:55:47 +00:00
  • 39411fa876 Added: also tweak single-/double-quotes and em-dashes. Wayne Davison 2006-11-14 07:54:26 +00:00
  • 662fd70b54 Changed name of tweak_manpage script. Wayne Davison 2006-11-14 07:48:56 +00:00
  • cd87e2f59a Turned the char * vars flist_dir and lastdir into const char * vars. Wayne Davison 2006-11-13 00:27:10 +00:00
  • 2c70847654 Turned the char * args to push_dir() and pop_dir() into const char *. Wayne Davison 2006-11-13 00:27:04 +00:00
  • eaf895e6ef Turned the char *dir.root var in struct file_struct into a const char *. Wayne Davison 2006-11-13 00:27:00 +00:00
  • 149a78e33f Ignore a time-setting error on a symlink (which is only attempted on a system with lutimes() anyway). Wayne Davison 2006-11-12 21:18:26 +00:00
  • 88897638a9 Tweaked a couple comments. Wayne Davison 2006-11-11 17:09:32 +00:00
  • c575f8ce87 Document the new p (perishable) filter modifier. Wayne Davison 2006-11-11 17:01:58 +00:00
  • 5303941021 If ignore_perishable is set, increment a count of all excluded items found by make_file(). Wayne Davison 2006-11-11 16:44:22 +00:00
  • c0f1e57b51 Added the MATCHFLAG_PERISHABLE flag. Wayne Davison 2006-11-11 16:43:13 +00:00
  • ccdb23bb90 - Added the 'p' (perishable) flag to the filter rules, as suggested by Matt. - If ignore_perishable is set, we ignore all perishable rules. - Mark all default-cvsignore rules as perishable (e.g. excludes such as *.o CVS .svn/ will not prevent a directory from being deleted). Wayne Davison 2006-11-11 16:39:57 +00:00
  • 146c2c368c - Restored some of Matt's suggested logic that I left out, as it is needed to get --dry-run to output appropriately. - Got rid of DR_PINNED from the enum delret. - Set a flag when we're deleting outside the transfer hierarchy and initialize a counter that flist.c will use to count excluded files. Wayne Davison 2006-11-11 16:39:02 +00:00
  • 60cc01a6c6 When make_file() gets a stat() error on a file, the check-for- exclusion-before-reporting-an-error code allows a dir-specific rule to match the unknown file, not just a non-dir rule. Wayne Davison 2006-11-11 15:34:31 +00:00
  • f5761a342b - Make delete_dir_contents() use less stack by recursing directly to itself, and then calling delete_item() w/o DEL_RECURSE. - Fixed the return value handling of delete_dir_contents(). Wayne Davison 2006-11-11 14:45:00 +00:00
  • caf8299e2e Tweaked an exit_cleanup() value. Wayne Davison 2006-11-11 08:01:40 +00:00
  • c6fadc0ee1 My adaptation of Matt's cleanup of the delete_item() code. The new code splits out part of the directory deletion into its own function, delete_dir_contents(), and it outputs more warnings when something could not be deleted. Wayne Davison 2006-11-11 07:03:57 +00:00
  • 2dc3db2a3e Docment that --max-delete=0 now works. Wayne Davison 2006-11-11 05:09:22 +00:00
  • 771d0add8f Die if we sent --max-delete=0 to a receiving side that is too old. Wayne Davison 2006-11-11 05:09:17 +00:00
  • e5e85283a9 Allow --max-delete=0 (zero used to be ignored). Wayne Davison 2006-11-11 05:09:14 +00:00
  • 21068d8e87 Increased the PROTOCOL_VERSION to 30. Wayne Davison 2006-11-11 05:09:10 +00:00
  • 4d2ea5a838 Mention another internal change. Wayne Davison 2006-11-10 15:39:03 +00:00
  • 9ba53f26a3 Test --del too. Wayne Davison 2006-11-10 15:36:15 +00:00
  • 3aeedbfd11 Fixed the hard-linking of symlinks test (we need to use a symlink to a non-existent file for the test to work right). Wayne Davison 2006-11-10 07:49:02 +00:00
  • 989b0b8802 Changed how we deal with the alternate-dest directory because some systems change the time on a directory that gets moved. Wayne Davison 2006-11-10 07:37:51 +00:00
  • b2e4811db2 Changed two more references to "st" to "real_st" in the dir-handling code. Wayne Davison 2006-11-10 07:17:20 +00:00
  • b467495cd0 - Fixed a problem where the real stat struct for a newly-created root-of-transfer directory could get overwritten by the check for basis dirs. - Fixed a potential problem where the stat struct for a new dir could get passed uninitialized to delete_in_dir(). Wayne Davison 2006-11-10 07:13:21 +00:00
  • 3b8ed84245 If the OS can't hard-link a symlink, tweak the expected output when using --link-dest. Wayne Davison 2006-11-10 06:27:35 +00:00
  • 3a72cc2929 Mention latest bug fixes. Wayne Davison 2006-11-10 05:07:08 +00:00
  • c202424a03 Changed to reflect new (more correct) output of what updating is happening. Wayne Davison 2006-11-10 05:07:05 +00:00
  • 083f75ee42 Improved to test --link-dest (when hard-linking of devices works). Wayne Davison 2006-11-10 05:07:02 +00:00
  • 45760f5f05 Allow all itemize types to change all-dots (no changes) into spaces. Wayne Davison 2006-11-10 05:06:59 +00:00
  • 116a4769c1 - Improved try_dests_non() so that it works with all non-regular files (including dirs). - Changed the directory-creating code to call try_dests_non() when a --*-dest option is used. - Revamped the device/special-files code to have the same logic as the symlink code, making it both simpler and more correct. - All the above makes us output changes for all items consistently when a --*-dest option is used. - Fixed an output bug in try_dests_reg() and try_dests_non() when -ii is enabled (we use to fail to output unchanged files). Wayne Davison 2006-11-10 05:06:56 +00:00
  • 1e4f5f6342 Added flag ITEM_MATCHED. Wayne Davison 2006-11-10 05:06:53 +00:00
  • a19d285ae3 Changed strcat() calls to strlcat(). Wayne Davison 2006-11-10 03:34:51 +00:00
  • 564782ba95 Disable POPT_WCHAR_HACK for now. Wayne Davison 2006-11-09 02:55:32 +00:00
  • 2dc7b8bd0e Got rid of type-casting into isFOO() and toFOO() functions by using static inline functions that take a signed char pointer. Wayne Davison 2006-11-09 02:39:29 +00:00